Jump to content

Python equivalent of 'clamp(cubic(),min,max)' in a parm?

Recommended Posts

I'm playing around with limiting transform handles on nulls to act as a rigging control surface.
I found on these forums a cool hscript snippet that allows this: clamp(cubic(),min,max).
Does anyone know the python equivalent? The python clamp doesn't seem to accept a cubic() as a parameter.

Also, does anyone know of another method of allowing for manual transform handle input that feeds into an expression? (HScript or Python).
I can't wrap my head around why cubic() works!




Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now