no viewport update using relative op: expression with cops

   2757   2   0
User Avatar
Member
14 posts
Joined: June 2011
Offline
Hi,

I am building a viewport reticle in cops to display frame number, camera info ect. for flipbooks. This is done by referencing a cop network on a constant shader which is applied to a grid that is parented to the camera. It all workes fine as long as the path to the cops OUT node is absolute. When using a relative path instead, the setup doesn't update anymore. This is a problem as I want to create a HDA from this setup.

I attached a simple example file including a simple cop2net with a font cop displaying $F. the absolute path updates the relative doesn't.

Thanks!

Attachments:
relativePath_cop_problem.hip (283.4 KB)
screenshot_copFont.jpg (70.9 KB)

User Avatar
Member
1390 posts
Joined: July 2005
Offline
op syntax works with absolute paths only, use opfullpath() for conversion:

op`opfullpath(“../../my/relative/path”)`
User Avatar
Member
14 posts
Joined: June 2011
Offline
SYmek
op syntax works with absolute paths only, use opfullpath() for conversion:

op`opfullpath(“../../my/relative/path”)`

great, thanks!
..I think it would probably be good thing to have some info about this syntax in the houdini documentation. I didn't find anything there, though it seems to be used all the time.
  • Quick Links