Notifications
Clear all

[Closed] Simply question

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

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
(@interage)
Joined: 11 months ago

Posts: 0

Thanks.
works very well

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]

Thanks MrPingouin