Adding external file to a USD layer

   927   7   2
User Avatar
Member
59 posts
Joined: Nov. 2017
Offline
Hi guys,

In our character workflow we still have to use some FBX - skeletons etc. Is there a way to add pointer to the FBX in the USD layer so it gets copied with the dependencies the way textures are?

Thanks!
User Avatar
Staff
4443 posts
Joined: July 2005
Offline
Gets copied where? And when? What operation are you expecting to cause the FBX file to get copied somewhere?
User Avatar
Member
59 posts
Joined: Nov. 2017
Offline
I mean usd render rop/output processors, save all files to specific directory.
User Avatar
Staff
4443 posts
Joined: July 2005
Offline
Ah, okay. So how are these FBX files referred to by the USD file?
  • Have you got a file format plugin that is loading the FBX files into the USD scene graph?
  • Or do you just have custom attributes on prims that hold paths to FBX files on disk?
  • If they are attributes, are they of type "string" or "SdfAssetPath"?
User Avatar
Member
59 posts
Joined: Nov. 2017
Offline
I've only seen that copying work with textures, didn't really know what kind of reference it should be. I tried adding it to primitive metadata, but it didn't get copied. Suggestion on where to link it?
User Avatar
Member
59 posts
Joined: Nov. 2017
Offline
Primitive metadata didn't work, I'll try custom property.
User Avatar
Member
59 posts
Joined: Nov. 2017
Offline
Got it working - using the usd_addprimvar() in attribute wrangle to add a new primvar of 'asset' type, and then usd_setprimvar() to point it to the file.
User Avatar
Member
59 posts
Joined: Nov. 2017
Offline
Changed that to attribute instead of primvar, but otherwise it worked
  • Quick Links