Is it possible to visualize vector variables created in an attribute wrangle node with VEX in Houdini? For instance if I create a variable
vector dir = {0,1,0};
Is there a way to visualize this vector in the viewport? I am able to visualize attributes by creating visualizers in the Display Options-> Visualizers tab, but this doesn't seem to work for variables created through VEX, unless I am missing something. The reason I'm trying to do this is it helps to see the vector lines when I'm trying to problem solve.
Thanks for any help!
How to visualize VEX variables?
6176 7 1- Subtle 1rony
- Member
- 23 posts
- Joined: April 2016
- Offline
- vusta
- Member
- 555 posts
- Joined: Feb. 2017
- Offline
- TwinSnakes007
- Member
- 606 posts
- Joined: July 2013
- Offline
- Subtle 1rony
- Member
- 23 posts
- Joined: April 2016
- Offline
Hey guys, thanks for the reply. I understand a VEX variable only exists within the wrangle node its created in. I was wondering if there was a way to visualize those variables(vectors in particular) the same way you can visualize vector attributes using the Display Options->Visualizers feature, which lets you create markers that display the vector lines.
I've attached a picture of the visualizer markers that I'm referring to. The blue is for the point normal and the yellow shows the position vector of the points. If I create my own vector variable in VEX(not an attribute), am I able to visualize it the same way? My reason was primarily for debugging purposes.
Thanks again for any assistance. I am a fairly new user, trying to find my way
I've attached a picture of the visualizer markers that I'm referring to. The blue is for the point normal and the yellow shows the position vector of the points. If I create my own vector variable in VEX(not an attribute), am I able to visualize it the same way? My reason was primarily for debugging purposes.
Thanks again for any assistance. I am a fairly new user, trying to find my way
Edited by Subtle 1rony - Dec. 18, 2017 02:43:00
- mestela
- Member
- 1746 posts
- Joined: May 2006
- Online
Its pretty common to copy your variable to a temp attribute, visualise it, and use an attribute delete sop later to get rid of it (or just remove those lines from your wrangle and delete the visualizer).
Eg,
And then you'd append a visualiser to look at the ‘a’ attribute, set its mode to ‘marker’, and type to ‘vector’.
Eg,
vector dir = (0,1,0}; v@a = dir;
And then you'd append a visualiser to look at the ‘a’ attribute, set its mode to ‘marker’, and type to ‘vector’.
- jsmack
- Member
- 7805 posts
- Joined: Sept. 2011
- Offline
- Subtle 1rony
- Member
- 23 posts
- Joined: April 2016
- Offline
Ah, thank you mestela, that solution does indeed work for me. And thank you for cgwiki, its been immensely helpful getting me started off in Houdini and understanding its language more.
@jsmack, what exactly do you mean when you say “bind to N”. Bind is a term I'm hearing a lot as I continue learning about Houdini, but I don't have a clear definition in my head of what it means. Thanks for your help!
-Eric
@jsmack, what exactly do you mean when you say “bind to N”. Bind is a term I'm hearing a lot as I continue learning about Houdini, but I don't have a clear definition in my head of what it means. Thanks for your help!
-Eric
- mestela
- Member
- 1746 posts
- Joined: May 2006
- Online
-
- Quick Links