how to lock rotation by limit code

Hi, how to lock rotation by limit code without IK solvers if I moving or rotating the bone ?

Any suggest about it ? perhaps by script or controller script ... thanks

sample in this case like rotate bone hand/fore arm character

AttachmentSize
limit-rotate.jpg44.7 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

quick theoretical code

quick theoretical code scheme:

if currVal < minVal then minVal
else if currVal > maxVal then maxVal
else currVall

my recent MAXScripts RSS (archive here)

Budi G's picture

thank you anubis :)

I see your point ... that's interesting one.
can you give me 1 sample script how to apply to the target object ?

oh yes, about my case... I have resolve the problem by myself, I just tried to assign float limit controller.
here the script :
$.rotation.controller.Z_Rotation.controller = float_limit upper_limit:0 lower_limit:-2.5 -- Z Rotation

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.