Randomize instanced doors open values

can it be done, since i have several instances of one door?

i can call a random value for the entire selection ($.open = random 1 100
), but i can t get random values for each instance within the selection…

I know i have been helped before but, i can t figure this out…again :sweat_smile:

If the doors are instanced copies I doubt you can do it, but if they are just unique copies it’s easy enough.

The problem with your script is that you are generating a single random value and assigning it to all the doors, you should calculate a different one for each door:
for o in selection do o.open = random 1 100
Cheers.

Or use TransformRandomizer from soulburn’s scripts.

unfortunately they were instances…i made each one unique…

it can rotate, scale and move them, but cannot define opening %…or can it?

Mmmh, I don’t understand. :stuck_out_tongue:
If you made them unique they are no longer instances so the sript should work. Have you tried it on your scene?

lol…
i needed it done yesterday! so the only way i figured it out was to make them unique to get it done…:wink:
thanx

Doh, I see … well, maybe next time will help :slight_smile:

:slight_smile:
…Thanks!

If each door is different how could they be instances? You’d have to collapse doors into static and rotating part and instance those. Then you could randomize rotation between them.

different? why do u assume that? they are bifold doors that share the same with, height, thikness, and so on…i just needed to randomize their opening values.

yep, thats indeed the proper way to do it…next time i will give it a go! thanks!