PDA

View Full Version : Bi-Directional Constraint - call for help.


chris_b
07-23-2008, 04:46 PM
Does anybody here know whether it is possible to set-up a bi-directional constraint in XSI without running into cyclic dependencies? I am beating my head against the wall here... On the same note, is there a built-in means of dynamic parenting that does not involve keying the activation of multiple constraints?

PureMoxi
07-23-2008, 05:06 PM
I suppose it depends on what effect/motion you are looking to achieve. Perhaps a bit more clarity would be helpful.

At first glance, I would say a 2, 3 or N-point constraint might be useful, in that the positioning/movement of multiple objects can affect the positioning of one object in a weighted fashion.

However, your dynamic parent question leads me to believe that you are changing the positioning of your "hero" child object from one place to another and have that positioning driven by one parent object at a time. I don't know about dynamic parenting, but feel that animated constraints, however slow and clunky as a workflow is the way that comes to mind for me when using multiple objects to dictate movement or positioning of one "hero" child object.

chris_b
07-23-2008, 06:23 PM
Hey Moxi,

Thanks for the reply, please allow me to explain better. What I mean by bi-directional is two or more objects that are constrained mutually.... For example, The cube is a child of my sphere, but my sphere is also a child of my cube... In my rig, I need to have two objects mutually direction/target constrained to each other. In Maya and C4D I am able to do this via MEL and in C4D via a third object and altering the order of operations... and no cycling problems so I know it is possible. Please watch the below video for example:

http://www.angelfire.com/ex2/maiolo/multiWayConstraint.html

How can one achieve this in XSI?

tc
07-24-2008, 07:17 AM
Hey Chris!

So in XSI you can do this with an OnSelectionChange event, which is pretty easy if you know Python/VBScript or Jscript...
Take a look on this example: http://www.vol2nuit.fr/guillaume/selection_event/selection_event

The cycle thing isn't gonna bother you until you start to put keyframes...
So a script like that is the way to go... What the script does is that when you select one object, you activate the constraint that point to this object, and deactivate the other. And vice-versa for the other object.
..
makes sense?

chris_b
07-24-2008, 03:06 PM
Thiago :) ... thanks again. You always have the answers for me!

PureMoxi
07-24-2008, 04:06 PM
I second that! Sorry for not getting back on this...got tied up yesterday..strangely enough...working on something thiago gave me thoughts on...ha.

tc
07-24-2008, 08:27 PM
Hey Guys,

here is an example of an object blending between two constraints.
No dynamic parenting need, no scripting involved.

The cube has a Custom Pset under it that drives both constraints with the same parameter.
Weight in 0 means 100% weight in PoseCns1, weight goes to 1 is blending to 100% of PoseCns2 and taking the weight of PoseCns1.

It's pretty simple, just open and check the model.

CGTalk Moderation
07-24-2008, 08:27 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.