mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
Merge pull request #5167 from tokejepsen/bugfix/OP-6206_xgen_export_abc
This commit is contained in:
commit
4ac0674137
2 changed files with 13 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class ExtractWorkfileXgen(publish.Extractor):
|
|||
continue
|
||||
|
||||
render_start_frame = instance.data["frameStart"]
|
||||
render_end_frame = instance.data["frameStart"]
|
||||
render_end_frame = instance.data["frameEnd"]
|
||||
|
||||
if start_frame is None:
|
||||
start_frame = render_start_frame
|
||||
|
|
|
|||
|
|
@ -86,6 +86,18 @@ class ExtractXgen(publish.Extractor):
|
|||
|
||||
delete_bin.append(palette)
|
||||
|
||||
# Copy shading assignments.
|
||||
nodes = (
|
||||
instance.data["xgmDescriptions"] +
|
||||
instance.data["xgmSubdPatches"]
|
||||
)
|
||||
for node in nodes:
|
||||
target_node = node.split(":")[-1]
|
||||
shading_engine = cmds.listConnections(
|
||||
node, type="shadingEngine"
|
||||
)[0]
|
||||
cmds.sets(target_node, edit=True, forceElement=shading_engine)
|
||||
|
||||
# Export duplicated palettes.
|
||||
xgenm.exportPalette(palette, xgen_path)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue