you could actually do it with one line: for i in (getClassInstances mix) do (i.mixAmount = 50)
This will change the mix amount in all mix maps to 50: mixArray = for i in (getClassInstances mix) collect i for i in mixArray do (i.mixAmount = 50)…
This script will unlock any selected keys with a Bezier Float controller: bezierArray = #() join bezierArray (getClassInstances bezier_float) for i…
The property you’re referring to is found on Bezier Controllers and can be set by changing the the key’s axis lock property to false. For example, if…
There’s a great tutorial by Andy Murdock that describes how to do what you’re asking with a spider rig. The entire tutorial may be more complex then …
Have you tried using a surface constraint and animating the U and V values?
This script creates a slider and 5 rectangles, hides the rectangles when the slider reaches 100.0 and unhides them when the value of the slider is <…
The first number displays the current fps and updates every half second, the second number shows you the your average fps over the last two seconds. …
It’s not deselect, it’s because the seletion array changes thru each iteration of the loop, it works if you collect the elements in a seperate array t…
selectArray = for i in selection where superclassof i != light collect i select selectArray
try these: array1 = #(“A”, “B”, “C”) array2 = #() array3 = #() –copying the array array2 = for idx in array1 collect idx –reversing the arra…
If you are just trying to show the vertex colors in the viewport you can use: setCVertMode <node> <boolean> You’ll have to force a viewp…
Hey Vikram, you should be able to just copy the controllers. Try this code, just replace $Sphere01 and $Box01 with the object that has the morph data…
Sorry just realized my code posted funny, Here it is again: rollout testA “test A” ( button buttonA “button A” ) rollout testB “test B” ( b…
Is this what you are after? rollout testA “test A” ( button buttonA “button A” ) rollout testB “test B” ( button buttonB “button B” ) t…