Jump to content

Get parameter from another node into VEX


Recommended Posts

A quick way to avoid guessing is to find the parameter you want to fetch (VEX can't write to parameters), right-click and copy it to the clipboard. Return to your empty wrangle node and paste as relative reference into the empty text box. This should give you a back-ticked ch() type path that you can use inside your vex code.

f@rows = `chs("../sphere1/rows")`;

 

Edited by Atom
  • Thanks 1
Link to comment
Share on other sites

13 hours ago, Atom said:

A quick way to avoid guessing is to find the parameter you want to fetch (VEX can't write to parameters), right-click and copy it to the clipboard. Return to your empty wrangle node and paste as relative reference into the empty text box. This should give you a back-ticked ch() type path that you can use inside your vex code.

f@rows = `chs("../sphere1/rows")`;

 

I tested this morning and I cant make it work, the scaled value by half is not affecting the outcome f@scale = `chs("../transform1/scale")`*0.5;

Link to comment
Share on other sites

That's odd, it works for me. The resulting value from the transform scale is cut in half and stored on the points. As I mentioned in the post before, VEX can't write to parameter fields. Are you expecting the value of the upstream transform to change?

Untitled-1.jpg

Edited by Atom
  • Thanks 1
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...