Time Code/Stamp from USD Import

   1025   2   0
User Avatar
Member
16 posts
Joined: July 2006
Offline
I have some generated USD files that start with a time offset other than 0. They look like this:

#usda 1.0
(
defaultPrim = “World”
endTimeCode = 20026.5
startTimeCode = 20025.125
upAxis = “Y”
)

def Xform “World” (
kind = “component”
)
{
def Mesh “mesh_0_0”
{
uniform bool doubleSided = 1
float3 extent.timeSamples = {
20025.125: ,
20025.25: ,
20025.375: ,
20025.5: ,
20025.625: ,
20025.75: ,
20025.875: ,
20026: ,


I have multiple files each with their own (different) start and end and stepping values. So, the question is how do I access/retrieve the time codes from a USD file within Houdini?

Mark
User Avatar
Member
16 posts
Joined: July 2006
Offline
Posting seems to have stripped the extents for each of the time samples, but it does import correctly into Houdini
User Avatar
Staff
4438 posts
Joined: July 2005
Offline
You can use python expressions to load the layer and extract whatever information you may need from it.
  • Quick Links