Masoud Posted November 7, 2019 Share Posted November 7, 2019 Hello guys; I want to read value of a parameter of a SOP node, inside a wrangle. Is it possible? Thanks. Quote Link to comment Share on other sites More sharing options...
LucaScheller Posted November 7, 2019 Share Posted November 7, 2019 (edited) 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: Cheers, Luca Edited November 7, 2019 by LucaScheller 1 Quote Link to comment Share on other sites More sharing options...
Roznick Posted November 7, 2019 Share Posted November 7, 2019 (edited) 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. Edited November 7, 2019 by Roznick 1 Quote Link to comment Share on other sites More sharing options...
anim Posted November 7, 2019 Share Posted November 7, 2019 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 2 Quote Link to comment Share on other sites More sharing options...
Masoud Posted November 8, 2019 Author Share Posted November 8, 2019 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: Cheers, Luca I changed path to a relative path and now it works. Thanks everyone. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.