Jump to content

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


Masoud

Recommended Posts

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
Link to comment
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
Link to comment
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
Link to comment
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.

 

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