Skip to content

Commit

Permalink
updates for conversations
Browse files Browse the repository at this point in the history
  • Loading branch information
lyon040502003 committed Aug 28, 2024
1 parent 9b91640 commit ecbc833
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _get_prim_prop_data(prim: Sdf.PrimSpec, layer: Sdf.Layer) -> List[str]:
prim: Sdf.PrimSpec to get data from
layer: Sdf.Layer parent layer of the Sdf.PrimSpec instance
Returns:
Returns: flat list of AttributeSpec values
"""
prop_data = []
Expand All @@ -79,7 +79,11 @@ def _get_prim_prop_data(prim: Sdf.PrimSpec, layer: Sdf.Layer) -> List[str]:
time_samples = layer.ListTimeSamplesForPath(prop.path)
for time in time_samples:
value = layer.QueryTimeSample(prop.path, time)
prop_data.append(value.path)
if value:
if hasattr(value, "__iter__"):
prop_data.extend(value)
else:
prop_data.append(value.path)

return prop_data

Expand All @@ -91,6 +95,7 @@ def _get_prim_spec_hierarchy_external_refs(

for child_prim in prim.nameChildren:
file_list.extend(_get_prim_spec_hierarchy_external_refs(child_prim, layer))
print(file_list)
return file_list


Expand Down

0 comments on commit ecbc833

Please sign in to comment.