OpenPype icon indicating copy to clipboard operation
OpenPype copied to clipboard

Nuke: Build workfile by template

Open friquette opened this issue 2 years ago • 4 comments

Brief description

Following discussion https://github.com/pypeclub/OpenPype/discussions/2013 This PR depends on the Maya build workfile by template https://github.com/pypeclub/OpenPype/pull/3315

Templated Build Workfile

Building a workfile using a template designed by users. Helping to assert homogeneous subsets hierarchy and imports. Template stored as file easy to define, change and customize for production needs.

1. Make a template

Make your template. Add nodes and everything needed for your tasks. Here is an example template for the compositing task using a placeholder.

image

The placeholder will be replaced by the nodes you want. To create a placeholder: OpenPype > Template Builder > Create Place Holder

image

  • Configure placeholders

Fill in the necessary fields (the optional fields are regex filters)

image

- Builder type: Wether the the placeholder should load current asset representations or linked assets representations

- Representation: Representation that will be loaded (ex: ma, abc, png, etc...)

- Family: Family of the representation to load (main, look, image, etc ...)

- Loader: Placeholder loader name that will be used to load corresponding representations

- Order: Priority for current placeholder loader (priority is lowest first, highet last)
  • Save your template

2. Configure Template

  • Go to Studio settings > Project > Your DCC > Templated Build Settings
  • Add a profile for your task and enter path to your template

image

3. Build your workfile

  • Open Nuke

  • Build your workfile

image

friquette avatar Jul 20 '22 16:07 friquette

Thank you @friquette! we're actually just about to approve and merge the source PR for Maya, which opens the road this right away. We'll have a look and give it a proper review

mkolar avatar Jul 22 '22 12:07 mkolar

Thank you @friquette , this is awesome! I was able to make and use template with loadClip for mov and exr.

  • Is there a way to load "look" as input process with LoadEffectsInputProcess? I was not able to make it work.
  • A minor one - looks like the template can't handle connecting loadClip with retime (Timewarp node).
  • The Path to template in settings is accepting root, but it refused {project[name]} or {task[name]}, it would be great to have that flexibility.
  • Applying template adds rogue Y_init knob in the OpenPype tab of the create Read. image

jrsndl avatar Jul 22 '22 15:07 jrsndl

Are you sure your venv is set in python3 ?

friquette avatar Aug 03 '22 14:08 friquette

think so, . .

image

m-u-r-p-h-y avatar Aug 03 '22 14:08 m-u-r-p-h-y

Closing as it is replaced by https://github.com/pypeclub/OpenPype/pull/3838

jakubjezek001 avatar Sep 23 '22 12:09 jakubjezek001