Jump to content

Access numpt at input 2 of wrangle


bobbybob

Recommended Posts

As I can understand from the Houdini documentation, the "@opinputn_name" will access attributes from the secondary inputs.

I am trying to access the "numpt" by "int numLastPoint = i@opinput1_numpt;" but this does not work. Im I missing something?

Edited by bobbybob
Link to comment
Share on other sites

There's a bit of a misunderstanding here... @numpt isn't a real attribute, it's a pseudo-attribute for convenience inside the wrangle. It's always relative to input0. If you want to get the number of points from input1, use the `npoints` function: `int npts = npoints(1)`.

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