View Full Version : transform all my group of copied shape to a group of instanced mesh ?
05-17-2006, 05:08 PM
How I can retreieve all transform of multiple object and use there information to create an instanced plane at every of these transform.
That's because I've copy many object but without instance, so I want to retreive all the transform and recreate a bunch of object with just one Plane_shape instanced at all of these coordinate.
thanks to reply if you've got a melscript for that ^^
05-20-2006, 08:11 PM
select the plane you want to instance, then Ctrl+Shift select the rest of the objects and apply this:
string $sel=`ls -sl -l -fl -typ "transform"`;
for($i=1; $i<$len; $i++)
select -r $sel;
$instanceNames=`ls -l -sl -fl -typ "transform"`;
$position=`xform -a -ws -q -t $sel[$i]`;
xform -a -ws -t $position $position $position $instanceNames;
05-22-2006, 11:05 AM
thanks a lot for that work... your a great scripter .. not to difficult compared to my level in mel scripting :-)
05-22-2006, 11:06 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.