View Full Version : When "A" value is 100, "B" value is 0.
Tak Tak 02-17-2005, 08:47 PM I want to wire 2 orient constraint weights to custom attribute slider like next. When Blend slider is on 100, target "A" should be 100% and target "B" on 0%. If I change slider value to 0, target "A" should be 0% and target "B" 100%.
How I can do that?
Thanks for helping.
|
|
I want to wire 2 orient constraint weights to custom attribute slider like next. When Blend slider is on 100, target "A" should be 100% and target "B" on 0%. If I change slider value to 0, target "A" should be 0% and target "B" 100%.
How I can do that?
Thanks for helping.
B=100-A
This rely was to short to post:) So now it isn't.
Tak Tak
02-17-2005, 09:21 PM
Thanks for reply Pen.
Hmm... Max says --Incompatible types: 100, and undefined
Something is wrong there:sad:
My expression is now Orientation_Weight_1=100-Orientation_Weight_0
Thanks for reply Pen.
Hmm... Max says --Incompatible types: 100, and undefined
Something is wrong there:sad:
My expression is now Orientation_Weight_1=100-Orientation_Weight_0
Are you using a wire param? Is so you need to wire to the spinner directly for both. One expression will be...
theSpinner
and the other...
100-theSpinner
"theSpinner" will be what ever track is that is controlling it.
prettyPixel
02-17-2005, 10:23 PM
Max says --Incompatible types: 100, and undefined
because Orientation_Weight_0 is... undefined
assign a value to Orientation_Weight_0 before calculating Orientation_Weight_1
Tak Tak
02-18-2005, 07:55 AM
Oh yes... Simple math:)
100-spinner value(if 100) = 0
and
100-spinner value(if 0) = 100
Now it works! Thanks.
CGTalk Moderation
02-18-2006, 08:00 AM
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.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.