$.anim_offset = 30 <--- how to set random value from 1 to 100 for this animation offset value in vray proxy

Hi

when i select multiple proxy objects and click on the script button i created from maxscript listener by changing the offset animation value, it sets all proxy objects animation to frame 30, i would like the proxy obejcts to have a random animation value from 1 to 100 frame.

Thanks

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Leandro Salerno's picture
barigazy's picture

like this

for vr in objects where isKindOf vr VRayProxy do vr.anim_offset = (random 1 100)

barigazy

barigazy's picture

nice :) Is it support vray2

nice :)
Is it support vray2 or is only for later versions?

barigazy

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.