hopbin9 Posted June 1, 2011 Share Posted June 1, 2011 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. Quote Link to comment Share on other sites More sharing options...
digitallysane Posted June 1, 2011 Share Posted June 1, 2011 (edited) This is useful but both the "op:" syntax and "opfullpath" expression are documented. Dragos Edited June 1, 2011 by digitallysane Quote Link to comment Share on other sites More sharing options...
Macha Posted June 1, 2011 Share Posted June 1, 2011 (edited) Yep, and add [$F] if you want frames (doesn't always work without, dunno why) Edited June 1, 2011 by Macha Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted June 1, 2011 Author Share Posted June 1, 2011 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, Quote Link to comment Share on other sites More sharing options...
digitallysane Posted June 1, 2011 Share Posted June 1, 2011 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.