hi, I need to instance selection 4 times and align each instanced group to a specific node.
I have certain objects selected — wheel, each object has different pivot point
I need to copy this 4 times and align each to a specific dummy:
here’s my code I’m working on:
dstWhFL = $wh_fl_dummy dstWhFR = $wh_fr_dummy dstWhRL = $wh_rl_dummy dstWhRR = $wh_rr_dummy wheels = #() for obj in selection do ( append wheels obj for i = 1 to 3 do ( newObj = instance obj append wheels newObj ) ) Format "Array Wheels contains %\n" wheels.count Format "Array Wheels contains %\n" wheels wheels.center = dstWhFL.center wheels.center = dstWhFR.center in coordsys local wheels.rotation.z_rotation = 180 wheels.center = dstWhRL.center wheels.center = dstWhRR.center in coordsys local wheels.rotation.z_rotation = 180