This may be a simple syntax question, but is there a way to use a relative path with the op: keyword? I am trying to point to a COP operator, and I can do this successfully with absolute paths but will not work with relative paths
I know I have done this is the past with expressions such as op:`opinputpath(“..”, 1)` in cases where I have a node wired as an input. However, when I tried to use opfind, I had no success
Any help on this would be huge!
using relative paths in op:
14474 7 4- grayOlorin
- Member
- 1799 posts
- Joined: Oct. 2010
- Offline
- jacob clark
- Member
- 665 posts
- Joined: July 2005
- Offline
- grayOlorin
- Member
- 1799 posts
- Joined: Oct. 2010
- Offline
- anon_user_46661527
- Member
- 12 posts
- Joined: Jan. 2017
- Offline
- marque_pierre
- Member
- 25 posts
- Joined: May 2015
- Offline
- Konstantin Magnus
- Member
- 670 posts
- Joined: Sept. 2013
- Offline
This is probably not the right way to do it, but it works:
op:/img/tex/OUT
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
- marque_pierre
- Member
- 25 posts
- Joined: May 2015
- Offline
Hello Konstantin,
Thanks for your suggestion.
This is what I get. Actually, I get that whether I do your “opimg/tex/OUT” or the standard “opimg/img1/OUT”
Oddly, my material turns this light pink as opposed to the standard grey, either way, when I try to call in the texture from null node.
What am I missing, or messing up?
PS. The smilies are from the colons + forward slash.
Thanks for your suggestion.
This is what I get. Actually, I get that whether I do your “opimg/tex/OUT” or the standard “opimg/img1/OUT”
Oddly, my material turns this light pink as opposed to the standard grey, either way, when I try to call in the texture from null node.
What am I missing, or messing up?
PS. The smilies are from the colons + forward slash.
Edited by marque_pierre - Sept. 11, 2017 10:40:44
- jsmack
- Member
- 7803 posts
- Joined: Sept. 2011
- Offline
op: references don't currently work that way in /mat, as only parameters on materials are scanned for references to external nodes.
You will need to encapsulate your material network in a builder node, and then use a parameter vop to pass the filepath to the texture node. Then for the value on the filepath, you can put the op reference. (note: putting the op reference directly on the parameter default value does not work)
You will need to encapsulate your material network in a builder node, and then use a parameter vop to pass the filepath to the texture node. Then for the value on the filepath, you can put the op reference. (note: putting the op reference directly on the parameter default value does not work)
-
- Quick Links