Notifications
Clear all
[Closed] Simply question
Apr 04, 2012 8:26 pm
Hi
My name id Eddie and I am new here. I have simple question. I am working in a script. I need clone 3 times and select first copy. How can I do that ?
Thanks
4 Replies
Apr 04, 2012 8:26 pm
Select the object, which you want to clone and execute this code.
(
toCopy = selection[1]
copy1 = copy toCopy
copy2 = copy toCopy
copy3 = copy toCopy
select copy1 -- select the first opy
)
1 Reply
Apr 04, 2012 8:26 pm
You can also avoid repeating the copy line, like this :
Considering you’ve selected the object you want to clone.
copies = #()
for i = 1 to 3 do
append copies (copy $)
select copies[1]