Tuesday, December 1, 2009

Linking relative objects

This is the forum topic into (relevant to MaxScript) where the question is -- How to link the objects in the group to the objects in the other groups by their numerical suffix, ie for example:

--> Bus_Collider_01

--> Bus_Collider_02
--> Bus_Graphic_02

...and so on.

There is an example code:
-- collect 'em
g1 = $Bus_Controller_* as array
g2 = $Bus_Collider_* as array
g3 = $Bus_Graphic_* as array

for i=1 to g1.count do g2[i].parent = g3[i].parent = g1[i]

For more read the original forum topic.

No comments:

Post a Comment

Thanks for your comment