Jump to content

POP extra inputs


Guest xionmark

Recommended Posts

Guest xionmark

Hello,

This has got to be an easy one. I need to read the particles coming into the 2nd and 3rd inputs of a POP but I've come up empty. There doesn't seem to be a method to read the data from a specified input like in SOPs.

POP_ContextData offers:
void 	getInputGeo (UT_String &path, int index) const
void 	setInputGeo (const UT_String &path, int index)

But that's for the SOP geo coming into the POP Network OP.

POP_Node has:
GU_Detail * getGeo (const char *overridegeopath, const POP_ContextData *data, float t, int addextrainput, int ignorexform, GU_Detail *copygdp, OP_Node **prevsop, int *retdoxform, UT_DMatrix4 *retxform, int *retneedsreset)

Which I use successfully to read geo from anywhere in SOPs, but it doesn't seem to have a form to read the particles from another POP node connected to a specified input to a POP. I've tried supplying the input path to getGeo() but Houdini complains.

So before calling POP_ContextData::getDetail(), how does one set the input for the data to be sourced from?

There's no inputGeo(), duplicateSource(), duplicateChangedSource(), useInputSource(), etc. in a POP_Node class. Surely there's a way to import particles as a separate GU_Detail than the "main gdp" in the POP_ContextData ? Is it right under my nose and it's too obvious? :-)

--Mark

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