Jump to content

Limit one parameter using another?


Recommended Posts

you can simply clamp param2 by param1, can't you?

@param1 = 0.2; //0.2 being value you want to clamp to but it can be anything

@param2 = clamp(@param2, 0, @param1);

Edited by davpe
Link to comment
Share on other sites

6 hours ago, PlatinumFishy said:

Sorry if I wasn't clear. I know how to do it in vex, hscript, etc. but I am trying to do this on a control null node. So within the actual parameter interface.

 

In the interface, I am not sure a parameter can refer to himself in the expression.

Therefore, I think your need to create a third parameter that will take min of both values, and use this value instead of parameter2 OR, create a new parameter where you set a value of « parameter 2 » (altough this is a dummy paramater), and in parameter 2 you take min of parameter1 and the value of new parameter...

To create another parameter on a node you need to click on the cog, and edit parameter interface. There you can create a parameter with the type you want.

Link to comment
Share on other sites

8 hours ago, PlatinumFishy said:

 

To be more specific I am trying to make parameter1 equal parameter2 when parameter2 is larger than Parameter1

if(param2 > param1)

    param1 = param2;

 

^^this but in the parameter menu

Hello Andrew !

In this condition param1 never will bee smaller then param2. If this is OK for you then see hip.

params.hipnc

Link to comment
Share on other sites

Hi Konstantin!

Maybe there is solution with python for it but I know python not good unfortunately.  In my hip red radius may be bigger but not smaller. Whereas blue radius may be smaller but not bigger. I don't know what exactly the goal Andrew wants to achieve is.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...