How to create an animation binding in Solaris?

   424   1   0
User Avatar
Member
789 posts
Joined: April 2020
Offline
Hello sidefx,

in python, I use this to bind an animation:

anim_binding = UsdSkel.BindingAPI.Apply(skeleton_prim.GetPrim())
anim_rel = anim_binding.CreateAnimationSourceRel()
anim_rel.AddTarget(anim_prim.GetPrim().GetPath())

I dont see an obvious way to do the same thing with nodes in Solaris, would you mind pointing me in the right direction?

thanks,
Koen
User Avatar
Staff
4444 posts
Joined: July 2005
Offline
I was going to say you can use an Edit Properties LOP, drag the "animationSource" attribute from the "Schemas/SkelBindingAPI" folder on the "From USD" tab in the far left panel of the Edit Parameter Interface dialog... But it seems that this doesn't apply the API schema. Adding the "geomBindTransform" primvar applies the API schema, so there may be something wrong with how Relationships are brought in from that pane? In the meantime, you can edit the "skel:animationSource" parameter that gets created by adding the "usdapischema" tag with a value of "SkelBindingAPI". Then when you set the animationSource parameter, it will set the relationship and apply the SkelBindingAPI schema. Basically what your python code above is doing.

I'll look into the bug about the SkelBindingAPI schema not being applied automatically.
  • Quick Links