Behavior issues after mirroring control curves
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Recently I decided I wanted to start scripting and I'd learn more advanced rigging stuff. So here I am.
I'm running into weird behavior issues after mirroring controllers, though.
Is there an easier way to mirror things over without screwing up the transforms? The code I wrote gets the job done but It behaves weirdly. e.g. When I use the viewport gizmo to transform, they behave as expected, whereas if I use the channelbox, the one that was mirrored follows world transforms, and the other, local transforms. (this fixed itself somehow)
getSelection = cmds.ls(sl=True) duplicateSel = cmds.duplicate(getSelection) o = cmds.group(em=True, n='pivotGroup') i = cmds.group(duplicateSel, n='mirrorGroup') cmds.parent(i, o) cmds.select(o) cmds.scale(-1,1,1) cmds.select(duplicateSel) cmds.parent(w=True) cmds.delete(o) cmds.makeIdentity(a=True, scale=True)
Another thing is that my clavicle controller follows one behavior but the bones follows another one. I saw that I needed a y * -1 for it to work properly so I put a multiplydivide in between the constraint and the bone, and then the behavior would work properly but the gizmo would not follow the same direction. I couldn't get the controller to get the same behavior as the joint.
I recorded a video. Since screencast is offline.
Any help or workflow tips is apreciated.