Jump to content

Get name attribute from another node


mois23

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
Link to comment
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)
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...