How can i Limit setdriven Attribute.

How can i Limit setdriven Attribute.

dwlee8291
Participant Participant
1,853 Views
2 Replies
Message 1 of 3

How can i Limit setdriven Attribute.

dwlee8291
Participant
Participant

Hi there I have a question while make setdriven

 

situation is 

I have nurbs Controller and object group

help.jpg

 

What i want is, 

If enum select Minus, Value attribute have limit -10~0, and if enum All, Value -10~10, enum Plus, Value 0~10

 

 

I think it has It's a very easy solution but I can't how to resolve it.... how can i limit custom value in attribute??
 
thank you for your answer!!
0 Likes
Accepted solutions (1)
1,854 Views
2 Replies
Replies (2)
Message 2 of 3

Kahylan
Advisor
Advisor
Accepted solution

Hi!

 

The Minimum/Maximum attributes are only seperately keyable attributes for translates (translation, rotation,scale) but not for custom attributes, so the min and max of a custom attribute can't be keyed using a set driven key.

But there are ways to almost achieve what you want. The limit on your Value attribute will sadly stay the same, but the Limit on TransX of your group will change.

Since your recieving Attribute is a Translate, you can simply drive its the Min Max attributes of your recieving Attribute with your driven Key. For this you just need to make the Attributes "Min Trans XLimit" and "Max Trans XLimit" keyable in the Channelcontrol. And then you can use the set driven key on them.

Driven_Min_Max.png

Now this would not be possible if the attribute you drive isn't a transform. But in that case you can use something called a clamp node to limit the range of the attribute that is received.

Clamp_Min_Max.png

The clamp node filters out all values of "output R" that are below "Min R" and above "Max R" therefore also limiting how far your recieving attriubte will go.

 

I hope it helps!

Message 3 of 3

dwlee8291
Participant
Participant
I'm sad it doesn't work out what i want. but your solution is impressive. thanks to your answer 🙂
0 Likes