We are exporting geometry (ABCs) and volumes (VDBs) along with a materialX file to later assign a shader in Gaffer using the export's path attribute.
Right now we have volumes working well, as I am assigning a @path attribute in Houdini which matches the volume's location with a "vdb" suffix added (example: s@path = "/obj/materialX/VDB/vdb"). This works great, as Gaffer will read the s@path and assign it the correct shader using the materialX file using the "geom" variable (example: geom="/obj/materialX/VDB/vdb").
However for geometry its a bit tricky. The when exporting packed geometry, the geom variable adds a numeric suffix at the end of inside the materialX file (example: geom="/obj/materialX/Geo/polygons:7124"). This is making creating a matching @path attribute hard as I am not sure how the numeric number is being created. When not packing the geometry, there is no numeric suffix in the materialX file (example: geom="/obj/materialX/Geo/polygons"). Furthermore, when I transfer the path attribute when I pack it on my pack node, I get a warning saying..
WARNING | /obj/materialX/Geo/polygons:7124: could not set STRING parameter "path"
... which makes me seem like it is somewhat picking up the @path attribute, even through I don't see it being used in the materialX file.
Am I doing this all wrong? I would ideally like to set my own @path attribute and then for the materialX file to use that. It looks like Arnold is somewhat recognizing it when exporting the materialX file, though I do not see it in the final .mtlx file. I would like to pack all my geometry as it just works better in Gaffer, however this is giving me the undesired numeric suffix.
Thanks in advance for the help.