clamp

   2246   2   1
User Avatar
Member
14 posts
Joined: Oct. 2010
Offline
Hello everyone

I try to clamp the translation value in Y between 0 , 1 in one simple box

How to do that?

i wrote this expression but don´t works

clamp(“ty”, 0.1, 1)

Thanks
editor compositor
User Avatar
Member
8555 posts
Joined: July 2007
Offline
http://forums.odforce.net/topic/19057-clamp/?p=114849 [forums.odforce.net]
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
Yes ,According http://forums.odforce.net/topic/19057-clamp/?p=114849 [forums.odforce.net] you can't reference parameter to itself !

But the Houdini is really smart 8) , You can simply create another vector parameter and connect Translate parameters to this and finally use clamp function for this or define range for this

check Attached file

Attachments:
JK_ClampTranslate.hipnc (82.6 KB)

https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
  • Quick Links