Jump to content

VOP SOP / pcopen ... help


Recommended Posts

I am sure I am just doing something incorrectly, but I am attempting to work through an older cmivfx course and i cannot seem to reproduce one of the lessons. It was created in an older version of houdini.

 

Anyway ... the network is supposed to find the nearest point on a piece of geometry given a query object. It uses 'pcopen' and 'while loop'.

 

I stripped it down as to not get in hot water with cmi ... but here is a .hipnc that has the working network (colored green) and my attempt at recreating it (colored red). If anyone can tell me what I did wrong that would rock.

 

there is a custom marker that will display the 'nearptnum' attribute so you don't have to drill to the spreadsheet.

 

Thanks a ton ...

 

M

 

 

 

 

 

 

 

 

vopsoppcopenbad.hipnc

Link to comment
Share on other sites

You are trying to set an attribute value with an addattrib node, it won't work as  you are only defining the default value of the attribute. To set an attribute value use either the setattrib node or the bind export node.

 

Thanks ! I will check it out right away.

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