Jump to content
Sign in to follow this  
Masoud

How can I read value of a SOP parameter, inside a wrangle?

Recommended Posts

Hello guys;

I want to read value of a parameter of a SOP node, inside a wrangle. Is it possible?

 

 

Thanks.

CallInVEX.jpg

Share this post


Link to post
Share on other sites

Hi,

your code snippet already works. I would recommend using relative paths where possible though:

f@test = chf("../line1/dist");

You can also use these functions to read ramps, string, vector or integer parameters or their raw value: 

Vex_ReadChannels.jpg.70bb4cda74d2c0663f41aae369538b92.jpg

 

Cheers,

Luca

Edited by LucaScheller
  • Like 1

Share this post


Link to post
Share on other sites

I suppose you want to manipulate the "Length" parameter in vex. You can use something like:

 f@len = chf("Lenght");

and click on the slider button on the right to make a slider. After that you can copy parameter from the newly created slider and paste relative references to the "Length" in your line node.

 

Edit: Ohh, someone already replied. Well, you can you this way too. :rolleyes:

Edited by Roznick
  • Like 1

Share this post


Link to post
Share on other sites

I'd recommend against using parameter paths that point different nodes in VEX

like Roznick said, create all UI you need on your wrangle and just channel reference those parameters to external parameters, this way Houdini will be able to track dependencies and if you rename your line1 node everything will still work

  • Like 2

Share this post


Link to post
Share on other sites

 

On 11/7/2019 at 4:21 PM, LucaScheller said:

Hi,

your code snippet already works. I would recommend using relative paths where possible though:


f@test = chf("../line1/dist");

You can also use these functions to read ramps, string, vector or integer parameters or their raw value: 

Vex_ReadChannels.jpg.70bb4cda74d2c0663f41aae369538b92.jpg

 

Cheers,

Luca

 

 

I changed path to a relative path and now it works.

 

Thanks everyone.

 

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
Sign in to follow this  

×