Notifications
Clear all

[Closed] Cloning nodes

Is there a way to clone a set of nodes while maintaining it’s hierarchy AND updating any dependencies? For example, when you have two dummies and one of them has a position constraint with the other dummy as the target. Cloning these dummies through the interface Edit->Clone will update the position constraint and set the target to the cloned dummy. However, when you select the two dummies and use maxOps.CloneNodes to clone them, the position constraint is still targeted to the original dummy. Same goes for node references in scripted controllers. Manual cloning will automatically update these references, while maxOps.CloneNodes does not.

Is there anything I am overlooking? Ideally, I’d like to have a function that behaves exactly like the manual clone function. Retargeting all references could be done through scripting, but I’m pretty sure it’ll be a pain to script.

[edit]Solved it. Using cloneType:#instance appears to instance the transform controllers as well, which obviously prevented any dependencies to be updated. So using cloneType:#copy (default) fixed the problem.[/edit]

Thanks in advance,
Martijn