Jump to content

How to find attribute by other attribute


Recommended Posts

i want to know hou to use hdk get point attribute by another attribute, such as point id attribute,

because i want to match attribute between different sop,the point number is not the same,so i can not 

use point offset to get attribute, 

i want it like blendsop use id attribute to point position attribute at different frame

 

Link to comment
Share on other sites

not sure about HDK, but if you are looking just for that functionality then

 

Find Attribute Value VOP or findattribval() VEX function is what you need

it will return pt number of the point(or other element) from given geometry with given int/string attribute value or -1 if not found

you can then use that pt number to import any attribute from that matching point

 

http://www.sidefx.com/docs/houdini13.0/vex/functions/findattribval

it's available since 12.5.192

Link to comment
Share on other sites

Guest mantragora

Do you have any starting code?

I'm asking because you are the second person here, with a total post count = 1, that signs to odforce and the first thing you are doing is asking about HDK stuff that from my experience is not something that people new to this forum should start from. There is a chance that you have ton of Houdini experience we don't know of but I would prefer at least some sign from your side that you really know what you are talking/asking about.

Cheers

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