Jump to content

implicit ptnum for second input in VOP


WLVL

Recommended Posts

Hello!

 

in VOP the ptnum is called with a parameter node for the first input (geometryvopglobal)

i used an importpoint attribute with sign: integer, input: second input, attribute: ptnum

but it returns me zero.

 

if i want the ptnum for the other inputs do i have to create the point number attribute ahead?

 

is the ptnum like an implicit attribute?

 

thanks for helping!!

 

Link to comment
Share on other sites

I think ptnum only gets the ptnum of the current point being processed.
Depends on what you wan't to do. if you want to get an attribute from the second input with the same number you can use the @ptnum as target point in the "point" function.
But if you want to iterate over all the points in the second input for each point in the first you can also use a for loop with the total number of points of the second input as goal.
So knowing what your goal might help for a better answer.

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