Jump to content

vex: create a variable from a referenced channel?


Juzwa

Recommended Posts

Hi, 

 

I'm still new to houdini and aspecially vex, so I dont feel comfortable in it.

 

lets say this is my path to the channel i want to use as a variable:

 

"/obj/my_geo/some_sop/my_attribute"

 

how do I make it a variable in a vex? eg.

 

myVal = ch("/obj/my_geo/some_sop/my_attribute")

 

often crashes houdini so I guess thats not how I do it.

Link to comment
Share on other sites

This should be:

f@myVal = ch("/obj/my_geo/some_sop/my_attribute")
float myVal = ch("/obj/my_geo/some_sop/my_attribute") /temporary variable which is accessible within this node only  

You need to define type of variable. I declare it as float.

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