Jump to content

How do you access parameters that are not inputs in a VOP SOP?


Recommended Posts

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 :)

Link to comment
Share on other sites

Guest mantragora

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 by mantragora
  • Like 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...