iamjaideep80 Posted November 18, 2005 Share Posted November 18, 2005 Hi Everybody, Having a problem. How can i limit a parameter into perticular range. Suppose I have a box, and i want to limit the Y pos in the range -10 to 10. I am not doing any procedral animation. I want to manually move the box up and down, but it should remain in the range. Basically what I want is simillar to Maya Limits. Is there a GUI for this, or have to use clamp function or clamp CHOP. And keep in mind, I WANT TO MOVE THE BOX IN VIEWPORT MANUALLY AND KEEP IT INSIDE THE RANGE AT THE SAME TIME. Thanking in advance. -------iamjaideep80 Quote Link to comment Share on other sites More sharing options...
sho Posted November 18, 2005 Share Posted November 18, 2005 How about using expression like min(10, max(-10, cubic())) in your Y pos field? This way can't limit handle though... There may be better way... Cheers, Sho Quote Link to comment Share on other sites More sharing options...
iamjaideep80 Posted November 23, 2005 Author Share Posted November 23, 2005 Hi Everybody........ Thanks for your Reply.. I found something. I don't know , if you knew this before. For limitting parameters, on an OTL, you can give Lower and Upper Range in parameter properties window of OTL. This is used for limitting sliders in OTL. But this is just for reference. This is not true rescricting. But there are two LOCKS near the range boxes. I don't know why, but I hadn't locked them. By Locking them, you can rescrict them to a range, even in the view port. This is new to me. But still, complete problem is not solved. You can do this with OTL, but not with normal object. If u know, tell me. Thanking in advance. ------iamjaideep80 Quote Link to comment Share on other sites More sharing options...
michael Posted November 23, 2005 Share Posted November 23, 2005 try clamp() Quote Link to comment Share on other sites More sharing options...
iamjaideep80 Posted November 24, 2005 Author Share Posted November 24, 2005 Hi arctor Thanks for your reply. Clamp is working fine. But we can't restrict the Handle. Anyway, I will wait for Houini, to add this feature. ----iamjaideep80 Quote Link to comment Share on other sites More sharing options...
6ril Posted June 26, 2016 Share Posted June 26, 2016 hey, old thread, but I'm looking for a way to do that too (limiting the viewport handle (rotate) to a range) I'm using clamp at the moment, on a bone, and I rotate a control null, that null sends it's rx to the bone. And I would need the null rx to not pass the range. I'd like to be able to see the handle stop, visually. Is it possible? Quote Link to comment Share on other sites More sharing options...
f1480187 Posted June 26, 2016 Share Posted June 26, 2016 Maybe there is a better way, but I was able to achieve this by duplicating default parameters with my custom ranges and then simply referencing them. Locking is also work: locked handles disappear properly. custom_ranges.hipnc 1 Quote Link to comment Share on other sites More sharing options...
6ril Posted June 28, 2016 Share Posted June 28, 2016 (edited) I think that might suit my needs (got to try it) I would never had thought this could work, as I'm surprised that using an expression on ry would still give my the handle for rotation on Y in the viewport ! I thought that if you use an expression then you loose the hand on that parameter, right ? Is it different for the transforms? anyway, thanks mate. *edit* it works, thanks again! and I think I was just assuming that "loosing the hand on parameter" thing... for some reasons.. Edited June 28, 2016 by 6ril Quote Link to comment Share on other sites More sharing options...
f1480187 Posted June 28, 2016 Share Posted June 28, 2016 @6ril, you still can edit referencing parameter using ladder or handles when there is no keyframe on it (dark green background). It will act like a teleport to the referenced one, but will use referencing parameter logic and handles. Besides control over handles, that may be useful, when you want to control parameters with several types of parameter templates, like use logarithmic float scale, some float interval and integer ticks at the same time. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.