PDA

View Full Version : Expression control for percentage...


azshall
01-05-2008, 12:32 AM
Is there an expression control effect that will give me a range to keyframe from 0% - 100% ... Rather than a slider, boolean, etc... I can't for the life of me figure out how to get an effect in there to hook up some expressions that go from 0%-100% :( .. Help?

Seth

Mylenium
01-05-2008, 09:54 AM
Is there an expression control effect that will give me a range to keyframe from 0% - 100% ... Rather than a slider, boolean, etc... I can't for the life of me figure out how to get an effect in there to hook up some expressions that go from 0%-100% :( .. Help?

Seth

Huh? What's the problem? Sliders can be used for percentages without problems as can the angle control. There's just no permannet way to limit the input range on the interface (you can set the min and max, but it will get lost the next time you open the project). Everything else is up to your code.

Mylenium

rhysworks
01-05-2008, 04:48 PM
I'm not entirely sure what you're asking, but why would you lose the min and max on project opening? You could just set min and max in the expression code or on a slider control, save/open and it should be no problem?

What do you need to go from 0-100% exactly? The magnitude of an expression? Or do you actually just want a range from 0-100%?

Mylenium
01-05-2008, 05:25 PM
I'm not entirely sure what you're asking, but why would you lose the min and max on project opening? You could just set min and max in the expression code or on a slider control, save/open and it should be no problem?

That would only apply to the code. You cannot set min/max ranges on the expression control itself except for using the preset injection method used on some of the animation presets. Sorry if that was unclear from my previous post.

Mylenium

CGTalk Moderation
01-05-2008, 05:26 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.