Jump to content

Pscale controlled by ramp


Recommended Posts

Hello! I'm kind of new to Houdini and especially to VEX. 

I was trying to animate scales appearing on a geometry using a ramp in an attribute wrangle, which controls pscale. This way, when changing ramp point position pscale changes along the x axis. However, the last points don't change, as you can see in the first image. What am I missing?

Thank you!

spherescales.thumb.png.c81b03a78bfe898e786f18c6121f6384.png

VEX.png.4ddee4c659faf784750df8ff4bbbe92c.pngramp.png.fc1f041f8a2d67fffa5f50ffdbda7785.png

Link to comment
Share on other sites

Hey Martina,

Hard to say without having a look at the file but I believe the issue is at your input values at the fit range, try somthing bigger then -1 and 1

I'd try something like this:

@pscale = chramp("scale" , fit( l , ch("old_min") , ch("old_max") , 0 , 1) );

(I hope this code works)

Then you can just click at this button to create the sliders
image.png.aed4b49e967c4682fc92f305289de786.png

 

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...