Mirroring Control Curves

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  12 December 2012
Mirroring Control Curves

This might be a pretty simple and redundant thing to ask at a forum on this level, but I figured I would post it up. I'm posting both to showcase the tutorial as well as ask if anyone sees any problem with my workflow.

This is a tutorial on how to create mirrored control curves on the opposite side of your rig while maintaining mirrored behavior. I have found few tutorials addressing this simple requirement that I'm sure plenty of other artists such as myself have struggled with. The ones that I have found did not address a way to keep the mirrored behavior when doing so.

This is an approach that I developed from experimenting and Forum browsing. I have found it to be pretty stable and I thought that it might be really useful for beginning TD's and animators.

Please let me know what you think. As always, if there are any advanced TD or riggers that see a problem with my method or know of an even better way to set this up, please let me know. I am always grateful for critique and any help I can receive.

http://www.youtube.com/watch?v=7bzT...eature=youtu.be
 
  12 December 2012
script

//MRT - mirror object(s).

//Find seleection...
string $mirSel[] = `ls -sl`;
//Make sure objects are selected...
if (size($mirSel) == 0){
warning "Select the object(s) to mirror!";
} else {
//Duplicate object(s)...
duplicate -rr;
//Group object(s) and place the pivot of the group at the origin...
string $wGrp = `group`;
xform -os -piv 0 0 0;
//Mirror the objects by scaling the group -1 in the X axis...
setAttr ($wGrp + ".sx") -1;
//Ungroup object(s)...
select $wGrp; ungroup;
//Freeze the transformations of the object(s)...
makeIdentity -apply true -t 1 -r 1 -s 1 -n 0;
}
 
  12 December 2012
Thanks for the script. I can read some of it lol.. What line grabs the bones behavior orientation and adds it to the controls?

Originally Posted by khuda: //MRT - mirror object(s).

//Find seleection...
string $mirSel[] = `ls -sl`;
//Make sure objects are selected...
if (size($mirSel) == 0){
warning "Select the object(s) to mirror!";
} else {
//Duplicate object(s)...
duplicate -rr;
//Group object(s) and place the pivot of the group at the origin...
string $wGrp = `group`;
xform -os -piv 0 0 0;
//Mirror the objects by scaling the group -1 in the X axis...
setAttr ($wGrp + ".sx") -1;
//Ungroup object(s)...
select $wGrp; ungroup;
//Freeze the transformations of the object(s)...
makeIdentity -apply true -t 1 -r 1 -s 1 -n 0;
}
 
  12 December 2012
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 11:24 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.