Notifications
Clear all

[Closed] xform duplication script

here is my script im tryin to apply an xfrom to a bunch of object sparately

mapped function .pos

global ChunksArray = $bricks_* as array

(

NumChunks = ChunksArray.count

for i = 1 to NumChunks collect

modPanel.addModToSelection (XForm ()) ui:on

on Release do

(

(

(

this is the error i get

[size=1]– Syntax error: at ., expected name

– In line:

1967

#(OK, OK, OK, OK, OK, OK, OK, OK, OK, OK, OK, OK, OK, OK, OK, OK, OK, OK, OK, OK, …)

– Type error: Call needs function or class, got: true

– Compile error: Unexpected end-of-script

– In line:

[/size]

4 Replies

i ran the script it makes starts to duplicates but it dosent look like its attachin to the objects,

still cold use some help thanks guys

ok,

you want to apply a different xform modifier to a selection of objects?


sel=selection as array
for s in sel do addmodifier s (xform())

or are you tring to do something else…

J.

yea i want to apply an xfrom to a bunch of objects i see what you wrote but i dont see how to tie it into what i wrote, the prob is i cant reset the xform on the object so i want to atemp to wirte s simple script that applies the modeifier to practice

hmmm,

I don’t know what to say. Your snippet of code tells me nothing about what you’re trying to achieve so it’s hard to help. It looks like you’ve cut and pasted it from the macrorecorder.
Can you supply some more information?