Notifications
Clear all

[Closed] Clone and set names of clone?

ok using the following as a test


  maxops.clonenodes $ offset:[0,50,0] expandHierarchy:true clonetype:#copy newnodes:"M_house27_01"
 

im trying to set the name of the cloned object, in this case “M_House27_01”

Is that what the “newnodes:” option is?( im guessing its not?)

How do i get the name of the new node, so i can rename it?

Cheers
Bronson

4 Replies

this should work:

maxops.clonenodes $ offset:[0,50,0] expandHierarchy:true clonetype:#copy newnodes:&newObjArray
newObjArray[1].name = “M_house27_01”

/Lui

cheers! Thanks

If your goal is to copy something and name it, a simpler option is available.

copy $ name:"M_house27_01"

You can replace “copy” with “instance” and “reference” to get the other cloning results.

ok, cool, ill try that too, but im taking the linked meshes with the clone in the original, ill test if it works with copy.

Cheers