OpenPype icon indicating copy to clipboard operation
OpenPype copied to clipboard

Enhancement/ftrack-restrict-folder-creation-for-shot-and-asset-build-only-(rebranched)

Open maxpareschi opened this issue 2 years ago • 0 comments

Brief description

Option to skip folders without tasks when creating publish and work folders ahead of time Option to create the local folder structure directly from Ftrack (only in the work root, where it makes sense)

Description

Current behaviour was creating publish and work folders in every ftrack folder indiscriminately, and also replicated the whole structure in all the root paths when triggered from the standalone project manager. Made the first step optional using a checkbox on Creation dialog, and also added the option (still through checkbox) to create the complete project directory structure taken from the global project settings directly from Ftrack.

Additional info

REBRANCHED FROM DEVELOP TO FIX BRANCH INDEPENDENCE ISSUE! There was a need to override the logic in lib/path_tools.py (to restrict the creation to the work root only). I exposed a new named arg that has the default value reflecting the old behaviour for compatibility (and while the old behaviour seems like a bug to me it can actually be correct in other places so..)

Documentation (add "type: documentation" label)

no docs

Testing notes:

  1. go to ftrack
  2. get to the project
  3. actions/create folders
  4. set the checkbox as needed (we check all of three to get the desidered output)
  5. enjoy the folders if you need them!

maxpareschi avatar Jun 14 '22 11:06 maxpareschi