rbesca Posted March 14, 2020 Share Posted March 14, 2020 (edited) hey all, inside a sop solver on a switch node I'm trying to get the length of a string array and multiply it with another channel right now the solver is overcopying objects: I was able to get this to work comparing the values of two float channels but I can't get it to work with a string array since len() doesn't show up in that context? I tried reading the manual on vex contexts and cvex but it's a bit confusing. which context is the switch node parameter in? is it in sop context because the node was created in a sop solver or is it somewhere else entirely because I'm typing in a parameter textbox? Edited March 14, 2020 by rbesca Quote Link to comment Share on other sites More sharing options...
anim Posted March 15, 2020 Share Posted March 15, 2020 expressions in parameters are by default Hscript expressions, optionally you can switch to Python, which can provide more power (at the expense of speed and amount of code) depending on the task you can also precompute value as an attribute using VEX and then reference in the parameter using one of the Hscript expression functions (detail(), prim(), point(), vertex()) 1 1 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.