cop relative path to sop?

   1325   3   0
User Avatar
Member
1004 posts
Joined: April 2017
Offline
Hi!

I'm trying to make an asset that has a COP2 network that needs to access a Null sop. With the absolute path, it works but I need to have it relative for it to work as an asset.

In cop, I've got a primitive_attribute node here
/obj/Bake_textures/Bake_RGBA/Bake_self_Cd/baker

...and the Null sop I'm trying to access is here:
/obj/Bake_textures/Bake_RGBA

I've seen somewhere that I need to use this to convert the relative path to absolute
op:`opfullpath("../COPnetwork/OUT")`

But my attemp failed:
op:`opfullpath("../../UV_world_pos")` (UV_world_pos is the Null I'm trying to access)

Attachments:
Houdini_cop_relative_path.jpg (91.0 KB)

User Avatar
Member
209 posts
Joined: March 2018
Offline
Hello!
The way which is worked for me was to first promote string file name and then write op:`opfullpath("../../UV_world_pos")` there...
User Avatar
Member
8532 posts
Joined: July 2007
Offline
seems like you are missing one more ../
but yes working on promoted parms is always a good idea
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
1004 posts
Joined: April 2017
Offline
AHH!!! I was only missing one more "../"

Now it works.
  • Quick Links