USD export: option to add a root prim. #107855

Merged
Michael Kowalski merged 12 commits from makowalski/blender:usd-root-prim into main 2023-05-15 16:01:06 +02:00

12 Commits

Author SHA1 Message Date
Michael Kowalski e3dabb4e38 USD IO: format fix.
buildbot/vexp-code-patch-coordinator Build done. Details
2023-05-12 14:17:52 -04:00
Michael Kowalski 9bedc6a2ce USD export: fix return statement compiler error. 2023-05-12 14:13:01 -04:00
Michael Kowalski 3b65cdc65b USD export: consistent report messages.
buildbot/vexp-code-patch-coordinator Build done. Details
Updated prim_path_valid() report messages to be
consistent in wording and capitalization.
2023-05-12 13:15:43 -04:00
Michael Kowalski e9412a03b8 USD export: remove unneeded output in validation.
Per review comments, removed redundant report statement
in the export parameter validation function.
2023-05-12 12:55:29 -04:00
Michael Kowalski b7fc1ded7e Merge branch 'main' into usd-root-prim 2023-05-12 12:13:07 -04:00
Michael Kowalski 4c65168e3c USD export: option to add a root prim.
Added a root_prim_path USD string option.  If this option is set to
a prim path (e.g., '/World'), a transform primitive with the given
path will be added to the stage as the parent of all exported
primitives. This will allow transforming the scene by this root
node in other applications and is also required for loading the
exported scene as a reference in other USDs.

Also added logic to include the material library node, which contains
all exported materials, under this root prim.

Finally, added an export_params_valid() function to verify that the
root_prim_path is valid before starting the export jog.  This function
can be extended in the future to perform additional validation of
other export parameters.
2023-05-11 16:57:36 -04:00
Michael Kowalski b845f247a8 Merge branch 'main' into usd-root-prim 2023-05-11 14:11:47 -04:00
Michael Kowalski 4d1ef10525 Merge branch 'main' into usd-root-prim 2023-05-09 14:09:20 -04:00
Michael Kowalski 46d1ea6f87 Merge branch 'main' into usd-root-node 2023-05-07 22:08:18 -04:00
Ashley b4d80f0ace
Clarify documentation, rename to add_root_node 2023-02-09 15:40:42 +01:00
Ashley 606e1ad2d8
Use an Xform instead as Scopes can't have transforms on them 2023-02-09 12:30:58 +01:00
Ashley d8316e811e
[USD Export] Add a setting that adds a Root 'Scope' node 2023-02-09 12:18:30 +01:00