Jump to content

Write To A Parameter Using VEX?


Atom

Recommended Posts

HI All,

I know how to read a parameter using vex via the ch("my_parameter) function.
How do I write a result back to that parameter inside a vex snippet?

For instance this does seem to be valid vex code, it does not throw an error but it also does not work.

ch("my_parameter") = 1;
Edited by Atom
Link to comment
Share on other sites

What is actually odd is that I just watched Peter Quint do this in his latest crowd tutorial video. He was updating the existing force value with a *= not a direct assign. However, when I tried to do this with a parameter that I had added to the interface, as you mention, it does not work.

post-12295-0-89363900-1442329071_thumb.p

Link to comment
Share on other sites

Guest mantragora

If you look inside of popSteerWanderDOP => noise_force => local_noise, you will see that there is a snippetVOP with expression referencing VexPression field. The force value is modified after it's set in UI.

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