検索 - User list
Full Version: reference lop default primitive expression doesn't work
Root » Solaris and Karma » reference lop default primitive expression doesn't work
mestela
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?
antc
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.
mtucker
It's just an error in that expression… Change ‘reffilepath’ to ‘filepath1’. I'll correct that.
mestela
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!
jsmack
mtucker
It's just an error in that expression… Change ‘reffilepath’ to ‘filepath1’. I'll correct that.

no bug report needed?
mtucker
Nope, no bug report needed. Thanks!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB