ynput / ayon-nuke

Nuke addon for AYON
Apache License 2.0
2 stars 6 forks source link

AY-3251_Nuke: Packing Nuke scripts #23

Open ynbot opened 22 hours ago

ynbot commented 22 hours ago

Please describe the feature you have in mind and explain what the current shortcomings are?

It would be great to be able to pack Nuke scripts with all its resources. Some clients require sending project files, and it requires a lot of effort to pack many shots.

Maybe an Action that can be run on many versions at once. Some kind of example boilerplate code: “how to run python script for many published Nuke workfiles“ would be awesome.

Requirements: Action should offer target directory for all packed zip files Packaging script should Create a temporary folder (lately used for zip conversion) Iterate via all loaders > copy connected files into a temp directory save current workfile version into the temp dir relink all loaders to relative paths inside of the temp dir (use TCL expression mapping current workfile folder as root for files) Iterate via all Gizmo class nodes and bake them recursivelly Copy currently used custom OCIO config file into temp dir Relink OCIO config file to be read form relative path Relink any Render write node in scene to be rendered into the relative folder inside of package folder. Packages should be at the end ZIP files Current context folder metadata with all attributes could be saved as JSON file into the package.

How would you imagine the implementation of the feature?

No response

Describe alternatives you've considered:

No response

Additional context:

() (might be a private channel)

This issue was automatically created from Clickup ticket AY-3251

jakubjezek001 commented 20 hours ago

Very good example of functionality can be found here https://github.com/jrsndl/pack_nuke done by @jrsndl

jakubjezek001 commented 20 hours ago

We need to implement nuke packing job processing using the ayon-circuit addon [currently work in progress] as an offloaded job.