I am using the Commands window to see the underlying snippet that is generated when Linear Drive is removed from a Prismatic Joint. The generated code is as below
The code snippet cannot be executed due to syntax errors.
I am curious what are the correct values for below line of code.
usd_prim=Usd.Prim(</PrismaticJoint>) # I tried changing that to path of Prismatic Joint but that didn't worked
...
...
...
api=<class 'pxr.UsdPhysics.DriveAPI'>, # what is the correct value here?
Is there any reference to documentation available with examples?
OK just to clarify your question, you were saying that you have copied this block of code from the command console and you trying to run it as a new command and it’s not working as expected? And what exactly is the syntax error you are getting?
@Richard3D I copied the generated code and tried executing it in my Python script. That’s where I am getting the error because the code generated is breaking the Python syntax.
Please let me know if you need any more information.