Tagged 'Scripts Wanted'

anytime Cross section

Create line → stack Surface modfire → cross section → delete line → Cleate new line → move vert → combine near vert( after Cross section)

Characteristics possessed by lines generated after cross section
anytime [near vertex] combine mode?

apply a value contained in layer name to an object

Hi,
I would like to add a fonctionnality to a little script :

In octane render (for eg )you can assign a layer ID to an object.
I would like to apply this ID if the object is in a layer which name contain a specific string :

layer name : thenameIwant - LID_2 or thenameIwant / LID_2 or thenameIwant LID_2

when running script it will set all objects in the layer the Layer ID 2.
(setUserProp $ "octane_layer_ID" 2)
when no string match it will set all objects in the layer the Layer ID 1.

if somebody help for this I could post the script on scriptspot with credit :-)

apply id

Hello,
3dsmax can select id by name's id, but it would be very interresting to APPLY id by name list..

Apply random material to element

Hi,

I found on this forum the following script that works very well when applying a random amount of materials to selected objects

Now if I have a single mesh with many sub objects in it (cubes for example) that each can be selected with the mesh / element selection, how shall I modify the script to make it apply the random materials to the elements of the mesh?

I presume the "obj" should be swtiched to become refering to the element instead?

Script:
for obj in selection do obj.material = meditMaterials[random 1 4]

thanks

Apply Turbosmooth modifier to selection

Hey guys,

I`m looking for a script that does the following:

When you run the script on your selection of objects, check if there are any turbosmooth modifiers already applied. If there are any applied, do nothing.

If there aren`t any applied, apply two turbosmooth modifiers. The first one with two iterations and seperate by smoothing groups turned on, the second one with one iteration and seperate by smoothing groups turned off.

It would be awesome if someone could help with this.

Thank you very much!

Apply UV to material ID

Okay guys last request for awhile!
We need to cycle and apply the following to all objects selected 1 by 1.

1: add a Poly select.
2: select a material ID.
3: Add a UVW map.
(if no polygons are selected on step 2,than skip steps 3 - 7)
4:Set Map channel to 2
5: set UVW map's length + width.
6: Set Alignment to X,Y, or Z
7:Move the UVW gizmo on X y or Z relative to the object's pivot point. (or relative to world x0 y0 z0 if its easier.)

8:do steps 1 - 7 again on the same object up to as many times as is needed for each side of the object specified above.

Applying material within SimpleMeshMod

Is there a way to apply a material from within a SimpleMeshMod without triggering and recursive loop of the object changing?

When the Enable button is pressed, i want the material applied, otherwise I'm planning on then restoring the original material. But i can't even get the temp material applied without it crashing. Do i need to store the material in a local variable and not the param block?

clearlistener()
 
plugin simpleMeshMod myMaterialModifier
name:"MaterialModifier"
classid:#(0x491fdf76, 0x7493038e)
(
    local tempMaterial = MultiSubMaterial()

Architectural rendering - Only one Vray sun enable at a time

Hi, guys
I'm looking for a script who automatically turn off other Vray suns when one is enable.
In architectural rendering, we make multiple point on view with many suns positions, but on earth, there is only one sun in one position at a time...

Archive Multiple Max Files

Is there a script that will archive all of my Max files into one zip, without the use of WinZIP or WinRAR. I need it to act like the archive feature currently in Max, but I need to archive all of my files into one and archive only one instance of any of the texture map(s) (no duplicates).

Archive selected

The title says it all and i am sure how handy it would be to have a script like that.

it saves the selected mesh or group of mesh to a location with maps aplied to the object only.

vote for it to get scripters' interest.

Syndicate content