You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a value clip is loaded, a USD_Clip object is created per-clip. But the layer for that clip is not immediately loaded. Instead, the clip layer loading is deferred until a value is needed from that layer. Because of the way Usd_Clip stores the layer that owns the clip metadata, the calculation of the clip file path will be wrong if the stage's layer stack is modified after the Usd_Clip object is created, but before the value is read.
From the directory containing cube.usda, run this python script:
from pxr import Sdf, Usd
s = Usd.Stage.Open('cube.usda')
l = Sdf.Layer.CreateAnonymous()
s.GetSessionLayer().subLayerPaths.append(l.identifier)
p = s.GetPrimAtPath('/geo/cube')
a = p.GetAttribute('size')
print(a.Get(3))
The output value will be 2.0 instead of the correct value of 1.0833333. This is because the individual clip files are not being found.
The text was updated successfully, but these errors were encountered:
Description of Issue
When a value clip is loaded, a USD_Clip object is created per-clip. But the layer for that clip is not immediately loaded. Instead, the clip layer loading is deferred until a value is needed from that layer. Because of the way Usd_Clip stores the layer that owns the clip metadata, the calculation of the clip file path will be wrong if the stage's layer stack is modified after the Usd_Clip object is created, but before the value is read.
Steps to Reproduce
cubeclip.zip
The text was updated successfully, but these errors were encountered: