# Constraint question

 Thread Tools Search this Thread Display Modes
 05 May 2013 #1 AdamMax Frequenter Adam Maxwell Australia   Join Date: Apr 2005 Posts: 108 Constraint question Hi, I am wondering how you would do the following in Maya (not a regular user). Constrain object A to object B so that when object B moves 1 meter object A moves 2 meters (or any defined multiplier of A).. So far all I can find is the constraint weight options which do not act as a multiplier but rather a way of weighting the effect between multiple constraints. Thanks for the help. share quote
 05 May 2013 #2 ralphymeijer Animator/3d generalist   Ralph Meijer Netherlands   Join Date: Sep 2002 Posts: 213 Maybe you can create a direct connection and put a multiply and divide node in between it. Not sure how to handle the offsets between the two objects but maybe it's a start. Expressions is another method. share quote
 05 May 2013 #3 jgibz Lord of the posts   portfolio Jack Gibbons USA   Join Date: Nov 2003 Posts: 787 Yeah, multiply-divide node seems to be the best way, always use a direct connection when you can avoid an expression. __________________ gibby3d.com share quote
 05 May 2013 #4 pollos 2∞&→   portfolio Tomm Modeling/Technical Artist ToonBox Entertainment Toronto, Canada   Join Date: Dec 2012 Posts: 408 Originally Posted by jgibz: Yeah, multiply-divide node seems to be the best way, always use a direct connection when you can avoid an expression. Any specific reason you should avoid expressions? Also by direct connection do you mean a set driven key? Just wondering because I personally would have used an expression in OP's situation. share quote
 05 May 2013 #5 jgibz Lord of the posts   portfolio Jack Gibbons USA   Join Date: Nov 2003 Posts: 787 Expressions are evaluated every frame, so they aren't as fast. SDK isn't a direct connection. A direct connection is like setting nodes to pass information directly to each other. Like node.rotateX = node2.rotateY. You can use the connection editor or drag from one node to another in the hypershade, or hypergraph. __________________ gibby3d.com share quote
 05 May 2013 #6 AdamMax Frequenter Adam Maxwell Australia   Join Date: Apr 2005 Posts: 108 Thanks everyone.. share quote
 05 May 2013 #7 CGTalk Moderation Expert   Join Date: Sep 2003 Posts: 1,066,473 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. share quote

 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 vBulletinCopyright ©2000 - 2006, Jelsoft Enterprises Ltd.