PDA

View Full Version : Synchronized rotation between two objects


Korchkidu
05-27-2009, 08:21 AM
Hi everybody,

I want to synchronize rotations between two objects. Basically, when I rotate object1, I want object2 to rotate as well and vice versa. Of course, connecting the rotation attributes altogether does not work because it makes a cycle. How would you do this with the Maya API?

Any help would be greatly appreciated.

Best regards.
K.

djtomservo
05-28-2009, 12:32 AM
There was a presentation at SIGGRAPH a few years ago about bi-directional constraints. You might start with that, as it aimed to provide the sort of functionality you're describing here.

uiron
05-28-2009, 03:04 PM
..and you gotta understand that you're up for a very big challenge; everything we're doing the "normal" way is a one way influence. if A is influenced by B, B cannot be influenced by A. neither directly nor indirectly. sometimes it may look as a two way connection (you can make A influnce B's rotation, and B influence A's translation), but it's always, always a one-way route actually.

Korchkidu
05-29-2009, 08:40 AM
Thanks a lot for your answers. A search a Siggraph course or masterclass on bi-directional constraints but I did not find anything. Do you have any links or some more information please?

Best regards.
K.

Cheesestraws
05-29-2009, 10:08 AM
http://store.autodesk.com/DRHM/servlet/ControllerServlet?Action=DisplayProductDetailsPage&SiteID=adsk&Locale=en_US&ThemeID=516200&Env=BASE&productID=81355600

http://store.autodesk.com/DRHM/servlet/ControllerServlet?Action=DisplayProductDetailsPage&SiteID=adsk&Locale=en_US&ThemeID=516200&Env=BASE&productID=81355400

dealer2couleurs
06-02-2009, 09:59 PM
I don't know if it can work but

in your probleme you don't need the bi directional relation at each time. In fact when you rotate the object A you want him to be connected to the object B rotation but not the B connected to the A and when You rotate B you don't want the link with A.

to do that you can base your method on the selected object.
each time you move on of the two object you can delete your links and create new ones.

if A selected (that means it will move)
delete link between rotationB and rotationA
connect rotationA to rotationB
else if B selected
delete connection between rotationA and rotationB
conncet rotationB to rotationA

I don't know if it can work, if it will be fast and if the maya architecture permit to do that but in my minds it work

CGTalk Moderation
06-02-2009, 09:59 PM
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.