BigRoy / usd-qtpy

Python Qt components for building custom USD tools.
MIT License
57 stars 8 forks source link

Enhancement: Add a simple Show Layer Diff widget #18

Closed BigRoy closed 7 months ago

BigRoy commented 7 months ago

This PR adds a very minimal "Layer Diff" widget that shows the ASCII diff between two layers.

As an example this now also adds it to the context menu for the Layer Tree Widget so that a user can right click a (saved; non-anonymous) layer and click "Show diff".

Here's a demo live in Maya on how that would work:

https://github.com/BigRoy/usd-qtpy/assets/2439881/15606ade-bfcd-42b3-89c2-97a7061f280a

Note: This again I'm currently demoing with the stylesheet from OpenPype which is not in this repository