ScriptSpot

Forum topic · General Scripting

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

By piotradamczyk · 2012-09-14

Description

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 (3)

like this

barigazy · 2012-09-14


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

barigazy · 2012-09-21

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