Changing Collection Default Primitive Paths

   Views 510   Replies 2   Subscribers 0
User Avatar
Member
33 posts
Joined: 7月 2005
Offline
Hello!

Probably just a simple one. Im using collections to organise geo for renderpasses, and seem to be hitting some issues when I try and get organised with the scene.

If I create a collection node, It places the prim at /collections. Then in a any node like a render geometry settings, I can just call my collection:

%env %cars %veg %etc

If I move where my collections in the scene (like putting it in the /Render folder). This no longer works and to use them I have to target the collections like this now:

/Render/passCollections.collection:env /Render/passCollections.collection:car /Render/passCollections.collection:veg... etc

Readablity is gone. Is there a way to keep the clean pathing and use of %, before I moved the collection prim?

I did get results with wildcards but it feels like a bad way to go eg:

*:env


Many thanks in advance!
Edited by revilo3d - 2024年12月26日 20:58:34
User Avatar
Member
33 posts
Joined: 7月 2005
Offline
OK so it seems this is governed in some way by Preferences > Lighting > Collection Primitive Path

If I change this location, I can put my collection in that new location and %env works.

So it seems like % = /<PrefCollectionPrimPath>.collection:

Is this how it works?
User Avatar
Member
7 posts
Joined: 11月 2024
Offline
You can maintain clean pathing by using relative references or setting up a custom attribute for each collection to store the path, allowing for easier referencing in other nodes.
  • Quick Links