OpenPype
OpenPype copied to clipboard
Enhancement/ftrack-restrict-folder-creation-for-shot-and-asset-build-only-(rebranched)
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:
- go to ftrack
- get to the project
- actions/create folders
- set the checkbox as needed (we check all of three to get the desidered output)
- enjoy the folders if you need them!