magneto Posted March 22, 2012 Share Posted March 22, 2012 I have a VOP node that has parameters amount, x, y, z, where only amount is an input. X, y, z are only parameters visible in the parameters pane. I need to access those in my VEX code but don't know how to do it. Basically something like this: func($amount, x, y, z); But I can't just do $x, $y, $z, can I? Thanks Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted March 22, 2012 Share Posted March 22, 2012 (edited) Anything that comes into your code in this VOP, and is not Global Variable, you can acces with "$". Doesn't matter is it input or just parameter visible on UI of this VOP. Think about both as of inputs. You can have input and parameter with the same name and type on your VOP. If you plug something into input "$" will get data from it, if nothing is plugged it get data from parameter. If you are lost how to make VOPS, watch this 4 vids long series by OldSchool link. He explains there usage of "$" sign. Edited March 22, 2012 by mantragora 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted March 22, 2012 Author Share Posted March 22, 2012 Thanks man, I tried it but it doesn't seem to use the values from the parameters when the values are only in the parameters. I made a simple scene showing it. testvop.hip testvop.otl Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted March 22, 2012 Share Posted March 22, 2012 You forgot to put semicolon. It just errors out. 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted March 22, 2012 Author Share Posted March 22, 2012 Thanks man, that's what I get for late night coding. It would be cool if the error messages were better. 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.