On 01/07/2018 at 08:08, xxxxxxxx wrote:
I'm trying to use the Character Object to create a rig that uses deformers other than skin (Squash and Stretch, Spline Wrap, etc.) But since objects inside the Character's hierarchy can't be dragged around, my plan was to write a command that copies of the deformers and pastes them outside of the Character Object, which means I can drag them under mesh objects. (The deformer has an XPresso tag on it to drive the parameters. This makes it react to the rig even when it's copied.)
The problem is, I can't find any way to copy the deformer and its tags. I've tried CallCommand() with copy-paste, but it's not allowed. I tried CopyTo(), GetClone(), CopyTagsTo(), but they don't work either; they can only duplicate the objects within the Character Object.
The only way that kinda works is to manually create new objects and tags, and individually copy the parameters of the original deformers. But I couldn't copy the contents of the XPresso tag this way...
Is there a solution that doesn't require me to use Current State to Object? Very worst case scenario is I create a command that calls CStO, and deletes all objects except for the deformers. But I want to avoid that if possible...