PDA

View Full Version : how can I connect one sphere hairConstraint for 2 hair system ?


butCherHeLL
03-07-2006, 06:47 PM
connectAttr hairConstraintShape1.outPin[1] hairSystemShape2.inputHairPin[1]

/ Error: Connection not made: 'hairConstraintShape1.outPin[1]' -> 'hairSystemShape2.inputHairPin[1]'. Source node will not allow the connection. //
// Error: The attribute 'hairSystemShape2.inputHairPin[1]' cannot be connected to 'hairConstraintShape1.outPin[1]'. //

I am trying to make hairsystem2 to connect a sphere constrain to hair follices.

other words:

1 sphere constraint for 2 hair system.

seems
hairConstraintShape1.outPin[0]
connected to
hairSystemShape1.inputHairPin[0]

so I wanna try to connect

hairConstraintShape1.outPin[1]
connected to
hairSystemShape2.inputHairPin[0]

connectAttr hairConstraintShape1.outPin[1] hairSystemShape2.inputHairPin[0]

but does not works

--------------------------
how can I connect one sphere hairConstraint for 2 hair system ?

Duncan
03-08-2006, 04:51 PM
The hair constraint has the ids on it of the hair curves to constrain, and thus it can't handle two different hair systems, as the ids would be different.

A workaround is to create a second constraint then parent it to the first and make it invisible. You can also connect attrs from the "lead" constraint to the second one, so that it respects attribute modification or animation.

Duncan

butCherHeLL
03-09-2006, 06:57 PM
nice idea.
thanks much

CGTalk Moderation
03-09-2006, 06:57 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.