Jump to content

FYI: Relative OP paths


Recommended Posts

Just wasted an hour trying to figure out how to reference a COP source from a Material using a relative path.

baseColorMap -> op:`opfullpath("../relative/path")`

Not documented at all in the manual, but hopefully will help someone else.

Link to comment
Share on other sites

This is useful but both the "op:" syntax and "opfullpath" expression are documented.

Documented yes, in a way that a keyword search would bring up the reason why op: doesn't work relatively, then no. Something in the manual that explains how to get op: to work relatively, then no.

The documentation only has this for opfullpath -> "Returns the full path of a node". *dah* that's what the frigging function is called.

I can't find any page in the documentation that explains how to use op:

If you know where it is, please post a link.

Thanks,

Link to comment
Share on other sites

I can't find any page in the documentation that explains how to use op:

If you know where it is, please post a link.

In the help for COPs:

http://www.sidefx.com/docs/houdini11.0/composite/export

op: is in itself quite special and not an expression. It's a file handler, a "protocol" if you want, used to specify an operator in the scene in a place where a file path is needed. It doesn't need the paths between quotes like expressions do, it's just a different way to specify a "file" (btw, you can use http: as well instead of op: and actually fetch an image directly from the web) and so it has no idea about the place of its node in the Houdini operator path. Still, since the respective field is actually a filename field, you can easily use an expression between back ticks to evaluate whatever you want as the path.

Dragos

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