-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Graph Views, Doc Updates and Specialize & Inherit Asset Units (#35)
* Enabled CI matrix with Py-3.9 and 3.11. * Moved `pygraphviz` to the `full` requirements and updated install instructions for Maya-2024 and Houdini-20.0. * Added `specialized` and `inherited` edit contexts for asset units. * `_GeomPrimvarInfo` now retrieves constant primvars from `Gprim` instead of `Imageable` schemas. * Added a `ConnectableAPIViewer` widget. * Added ability to filter edges by arc details on `LayerStackComposition`. * Added a custom `_GraphicsViewport` widget to navigate graphs interactively and to avoid use of `QWebEngineWidgets`. * Added `_SvgPixmapViewport` to avoid use of `QWebEngineWidgets` for `PrimComposition` widget. * Extended USDView prim context menu selection for hierarchy selection and prim introspection. * Updated doc images, links to openusd.org and sphinx theme to use shibuya.
- Loading branch information
Showing
46 changed files
with
2,146 additions
and
411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
include grill/resources/*/* | ||
include grill.pth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Connections Viewer | ||
------------------ | ||
|
||
From a given `prim`_, recursively traverse its connections through `UsdShade.ConnectableAPI`_. | ||
Every node represents a `prim`_, with its name at the top, followed by each of its inputs and outputs. | ||
Outputs are marked as red. Inputs are blue (light for non connected inputs, dark for ones with incoming connections). | ||
|
||
.. tab:: USDView | ||
|
||
.. image:: images/connections_viewer_usdview.gif | ||
|
||
.. tab:: Houdini | ||
|
||
.. image:: images/connections_viewer_hou.jpg | ||
|
||
.. tab:: Maya | ||
|
||
.. image:: images/connections_viewer_maya.jpg | ||
|
||
.. _UsdShade.ConnectableAPI: https://openusd.org/release/api/class_usd_shade_connectable_a_p_i.html | ||
.. _prim: https://openusd.org/release/glossary.html#usdglossary-prim | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Environment Variables | ||
--------------------- | ||
|
||
``The Grill`` defaults to an interactive graph explorer for views like the ``ConnectionViewer``, ``LayerStack Composition`` and ``Taxonomy Editor``. | ||
Previously, these views used to load static SVG images, leveraging ``QtWebEngine`` for performance. | ||
However, some environments do not bring ``QtWebEngine`` with them, and others lead to crashes (see `thegrill#36 <https://github.com/thegrill/grill/issues/36>`_ as an example). | ||
|
||
In order to help with these issues and to bring interactivity to graph views, `thegrill#35 <https://github.com/thegrill/grill/issues/35>`_ introduced a custom ``GraphView`` inheriting from ``QGraphicsView``. | ||
|
||
When needed, the following environment variables will bring the old SVG behavior and prevent ``QtWebEngine`` crashes: | ||
|
||
GRILL_GRAPH_VIEW_VIA_SVG | ||
~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Enable this with a boolean value to inspect graphs as SVG images. A value of ``0`` will restore the default interactive GraphViewer: | ||
|
||
.. tab:: GRILL_GRAPH_VIEW_VIA_SVG=0 | ||
|
||
.. tab:: Connections Viewer | ||
|
||
.. image:: images/connections_viewer_interactive.jpg | ||
|
||
.. tab:: LayerStack Composition | ||
|
||
.. image:: images/layerstack_composition_interactive.jpg | ||
|
||
.. tab:: GRILL_GRAPH_VIEW_VIA_SVG=1 | ||
|
||
.. tab:: Connections Viewer | ||
|
||
.. image:: images/connections_viewer_svg.jpg | ||
|
||
.. tab:: LayerStack Composition | ||
|
||
.. image:: images/layerstack_composition_svg.jpg | ||
|
||
If you come across any reason to inspect images as SVG, please reach out on GitHub as this will help assess if this should be removed or better integrated beyond an environment variable. | ||
|
||
GRILL_SVG_VIEW_AS_PIXMAP | ||
~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Enable this with a boolean value to load SVG images as ``QPixmap`` (thus avoiding use of ``QtWebEngine``): | ||
|
||
.. tab:: GRILL_SVG_VIEW_AS_PIXMAP=0 | ||
|
||
.. image:: images/prim_composition_svg.jpg | ||
|
||
.. tab:: GRILL_SVG_VIEW_AS_PIXMAP=1 | ||
|
||
.. image:: images/prim_composition_pixmap.jpg | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+71.2 KB
docs/source/images/layerstack_composition_options_precise_source_layer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.. mdinclude:: ../../README.md | ||
.. include:: ../../README.md | ||
:parser: myst_parser.sphinx_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.