Atom Posted September 13, 2015 Share Posted September 13, 2015 (edited) 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 September 13, 2015 by Atom Quote Link to comment Share on other sites More sharing options...
anim Posted September 13, 2015 Share Posted September 13, 2015 you can't write to a parameter with VEX at the moment you would have to store your value in attribute and then reference it in parameter using detail(), prim(), point() or vertex() expression Quote Link to comment Share on other sites More sharing options...
Atom Posted September 15, 2015 Author Share Posted September 15, 2015 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. Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted September 15, 2015 Share Posted September 15, 2015 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. 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.