Jump to content

pcopen VOP


MENOZ

Recommended Posts

hello!

I'd like to know how to input a sop node (like particles) into the file parameter in the pcopen VOP node, instead of write to disk a .pc file.

thanks!

Use the op: to feed things into a file pararameter.

op:/obj/myGeoObj/myParticles

It does need to be a full path, you cannot use relative paths. if you need to use a relative path you could do something like

op:`opfullpath("../myNode")`

Link to comment
Share on other sites

Use the op: to feed things into a file pararameter.

op:/obj/myGeoObj/myParticles

It does need to be a full path, you cannot use relative paths. if you need to use a relative path you could do something like

op:`opfullpath("../myNode")`

thank you!!

Link to comment
Share on other sites

Hey Mathieu,

The issue you're facing is caused by the file parameter vop. The expression you have in there for the initial value is not being expanded before being thrown into the vex code. The same expression in the "point cloud texture parameter" of the pcopen vop does seem to be expanding properly. Maybe a bug? Anyway if you delete the expression from the file parameter vop's "file default" everything should work fine.

Dan

Link to comment
Share on other sites

Hey Mathieu,

The issue you're facing is caused by the file parameter vop. The expression you have in there for the initial value is not being expanded before being thrown into the vex code. The same expression in the "point cloud texture parameter" of the pcopen vop does seem to be expanding properly. Maybe a bug? Anyway if you delete the expression from the file parameter vop's "file default" everything should work fine.

Dan

I havent taken a look at the file, but one thing to note is that the "op:" syntax does NOT work when using point clouds in shaders. You have to write out your pts as a .pc/.bgeo file. .pc are more efficient so best to write out those over .bgeo's.

Edited by SpencerL
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...