reference lop default primitive expression doesn't work

   2566   5   0
User Avatar
Member
1737 posts
Joined: May 2006
Online
Weaning myself off sublayers that seem to cause issues in a few places.

Here's a sublayer, all I do is point it at a usd, can see the scene graph path looks as I expect with no more effort:



If I load the same with a reference, I have to manually set primitive path to ‘/volume1’ to match:



I suspected it should be possible to automate, but putting just ‘/’ doesn't work. My mate Ben pointed out that this is what defining the default prim is for, so I went back to the file I'm trying to reference, set the default prim to /volume1, saved.

In the dropdown for the default prim is an expression, ‘Referenced files default primitive’. If I choose it, the expression errors:



Am I misunderstanding the role of this expression? It should be possible to recreate the basic functioanlity of a sublayer without manually typing in a primitive path right?

Attachments:
Selection_070.png (19.7 KB)
Selection_071.png (26.9 KB)
Selection_072.png (60.5 KB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
273 posts
Joined: Nov. 2013
Offline
Does it work with an empty string rather than “/”? With the default prim specified in the reference file the reference shouldn't need any target. However “/” targets the root which is not a valid thing as a far as a reference target goes.
User Avatar
Staff
4435 posts
Joined: July 2005
Offline
It's just an error in that expression… Change ‘reffilepath’ to ‘filepath1’. I'll correct that.
User Avatar
Member
1737 posts
Joined: May 2006
Online
antc
Does it work with an empty string rather than “/”?

I thought I tried that, but I'll give it another go. I assume it doesn't otherwise we wouldn't need that expression.

Cheers for the fix Mark!
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
7741 posts
Joined: Sept. 2011
Offline
mtucker
It's just an error in that expression… Change ‘reffilepath’ to ‘filepath1’. I'll correct that.

no bug report needed?
User Avatar
Staff
4435 posts
Joined: July 2005
Offline
Nope, no bug report needed. Thanks!
Edited by mtucker - Aug. 24, 2020 09:01:18
  • Quick Links