Jump to content
mois23

Get name attribute from another node

Recommended Posts

Hi guys,

I'm stuck in a stupid problem. I have a blast node with one point. I'd like to get the name attribute from it and copy in another node (see picture attached). I tried point() expression but it doesn't work. Can't figure out how fix this.

 

boh.thumb.jpg.6653a6a8df662ab210cc9030a17a7bdd.jpg

 

 

 

Edited by mois23
Upload the same pic

Share this post


Link to post
Share on other sites

In vex, we cannot specify geometry as relative path.

a. You may wire the MUDGUARDS into the second input, and the vex will be:
point(1,"name",0)

b. If you don't want to wire (or you cannot), you can add a spare input, and change vex to:
point(-1,"name",0)

c. Another solution, worse than b. Rewrite your vex to this:
point("op:/obj/yourgeoname/MUDGUARDS","name",0)
But this is probably bad, because if you rename anything in the path, vex doesn't update the code automatically, so this path gets broken.

d. You could make a new parm (Operator Type) on the wrangle node, and then use chs() in vex to evaluate the content of the parm

 

As regards spare input, it is described here:
http://www.sidefx.com/docs/houdini/model/compile

More is here:
http://www.sidefx.com/docs/houdini/io/op_syntax.html

Edited by ikoon
unwanted emoji autoreplaced b)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×