USD time offset

   269   1   0
User Avatar
Member
4 posts
Joined: 2月 2023
Offline
Hi

I have an usd file with a 90 frame animation.

When I put it in stage with sublayer I can change Time offset. Thats working.

I want to use random numbers to this time offset. Also working in solaris.

When i render it with "Render all frames with a single process" this does not work.
I checked the saved usda, and I can see the problem:
@anim.usda@ (offset = 1)

So after reading a little, this is a not animatable property (https://lucascheller.github.io/VFX-UsdSurvivalGuide/pages/core/elements/animation.html#animationTimeCode [lucascheller.github.io])

Is there any other way to time offset animations?
Finally I will not use solaris, only husk and I want to give it an usd file with a lot of frames with random properties

thx
User Avatar
Member
4 posts
Joined: 2月 2023
Offline
I solved it with preframe python

prim = stage.GetPrimAtPath('prim/at/path')
ref = prim.GetReferences()
ref.ClearReferences()
ref.AddReference(assetPath = 'path/to/the/model.usda', primPath = '/prim/at/path', layerOffset = Sdf.LayerOffset(offset=hou.frame()))
  • Quick Links