Skip to content

Integrate pinning file fails with Houdini Explicit Layer Save products #75

@BigRoy

Description

@BigRoy

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

The instances that are created at publish time for Houdini explicit layer save paths do not have any instance.data["stagingDir"] or instance.data["ifdPath"] set. Hence the pinning file generation errors on it because it requires either of those attributes to be set.

Expected Behavior:

It should pass fine - or better even, pinning file generation should not occur for those instances.

Version

1.0.0

What platform you are running on?

Windows

Steps To Reproduce:

  1. Create a USD publish with a layer that has Explicit Layer Save Path set in Houdini

Are there any labels you wish to add?

  • I have added the relevant labels to the bug report.

Relevant log output:

DEBUG: No staging directory on instance found.
ERROR: No staging directory found.
Traceback (most recent call last):
  File "/home/ynput/Documents/GitHub/Lyonh/AyonDev/repos/ayon-usd/client/ayon_usd/plugins/publish/extract_skeleton_pinning_json.py", line 58, in process
    staging_dir = Path(instance.data["stagingDir"])
KeyError: 'stagingDir'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ynput/Documents/GitHub/Lyonh/AyonDev/repos/ayon-usd/client/ayon_usd/plugins/publish/extract_skeleton_pinning_json.py", line 62, in process
    staging_dir = Path(instance.data["ifdFile"]).parent
KeyError: 'ifdFile'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ynput/.local/share/AYON/dependency_packages/ayon_2406251627_linux-rocky9.zip/dependencies/pyblish/plugin.py", line 528, in __explicit_process
    runner(*args)
  File "/home/ynput/Documents/GitHub/Lyonh/AyonDev/repos/ayon-usd/client/ayon_usd/plugins/publish/extract_skeleton_pinning_json.py", line 65, in process
    raise KnownPublishError("Cannot determine staging directory.") from e
ayon_core.pipeline.publish.publish_plugins.KnownPublishError: Cannot determine staging directory.

Additional context:

For context on explicit layer save paths also see: ynput/ayon-houdini#146

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions