Read COP in SOPs with relative reference path

   6405   4   1
User Avatar
Member
230 posts
Joined: 10月 2009
オフライン
It is probably stupid question but I can make it work and I cant find the answer in the forum. I have a COP network inside the SOPs and I want to read the final output from the compositor back to SOPs as image. Using opobj/geo/cop2net/OUT works! but the relative path op:../cop2net/OUT it doesn't! What am I missing?

cheers
User Avatar
Member
390 posts
Joined: 1月 2012
オフライン
i dont know if this is supposed to be like this or not, but in my experience using op: has always needed to be an absolute path
.
User Avatar
Member
230 posts
Joined: 10月 2009
オフライン
zdimaria
i dont know if this is supposed to be like this or not, but in my experience using op: has always needed to be an absolute path

Probably you are right. I have used in the past the op in a combination with opinputpath but now isnt that helpful. I was just wondering if you have an OTL which includes an COP, how can you access its output? You can't have an absolute path because it will brake the OTL.
User Avatar
Member
230 posts
Joined: 10月 2009
オフライン
I found the answer, you have to convert the relative path to an absolute path:

op:`opfullpath(“../cop2net/OUT”)`

and it works like a charm,

cheers
User Avatar
Member
390 posts
Joined: 1月 2012
オフライン
awesome. this is really good to know.
.
  • Quick Links