Notifications
Clear all

[Closed] camera clone

a = $
b = maxops.cloneNodes a
select b.target

assuming a camera is selected
how can i select the target of the new cloned one?

4 Replies
 lo1

that is not how maxops.CloneNodes is used. it returns true, not the new node. This will work:

a = $
b =  maxops.clonenodes a newNodes:&result
select result[1].target

ty
so what is b here for?
is there another way by adressing the object b which will be the new camera?

 lo1

sorry, b is redundant in my example.
if you wanted the new camera returned in to b, you would write:

a = $
maxops.clonenodes a newNodes:&result
b = result[1]

Ty very much…
got it