mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Merge branch 'develop' into enhancement/OP-8204_Nuke-use-AYON-settings
This commit is contained in:
commit
97ce616f21
2 changed files with 27 additions and 3 deletions
|
|
@ -279,7 +279,8 @@ def create_server_package(
|
|||
def main(
|
||||
output_dir: Optional[str]=None,
|
||||
skip_zip: bool=False,
|
||||
keep_sources: bool=False
|
||||
keep_sources: bool=False,
|
||||
clear_output_dir: bool=False
|
||||
):
|
||||
log = logging.getLogger("create_package")
|
||||
log.info("Start creating package")
|
||||
|
|
@ -292,7 +293,8 @@ def main(
|
|||
new_created_version_dir = os.path.join(
|
||||
output_dir, ADDON_NAME, ADDON_VERSION
|
||||
)
|
||||
if os.path.isdir(new_created_version_dir):
|
||||
|
||||
if os.path.isdir(new_created_version_dir) and clear_output_dir:
|
||||
log.info(f"Purging {new_created_version_dir}")
|
||||
shutil.rmtree(output_dir)
|
||||
|
||||
|
|
@ -339,6 +341,15 @@ if __name__ == "__main__":
|
|||
"Keep folder structure when server package is created."
|
||||
)
|
||||
)
|
||||
parser.add_argument(
|
||||
"-c", "--clear-output-dir",
|
||||
dest="clear_output_dir",
|
||||
action="store_true",
|
||||
help=(
|
||||
"Clear output directory before package creation."
|
||||
)
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"-o", "--output",
|
||||
dest="output_dir",
|
||||
|
|
@ -350,4 +361,9 @@ if __name__ == "__main__":
|
|||
)
|
||||
|
||||
args = parser.parse_args(sys.argv[1:])
|
||||
main(args.output_dir, args.skip_zip, args.keep_sources)
|
||||
main(
|
||||
args.output_dir,
|
||||
args.skip_zip,
|
||||
args.keep_sources,
|
||||
args.clear_output_dir
|
||||
)
|
||||
|
|
|
|||
|
|
@ -287,6 +287,13 @@ class ProcessSubmittedJobOnFarmModel(BaseSettingsModel):
|
|||
default_factory=list,
|
||||
title="Skip integration of representation with ext"
|
||||
)
|
||||
families_transfer: list[str] = SettingsField(
|
||||
default_factory=list,
|
||||
title=(
|
||||
"List of family names to transfer\n"
|
||||
"to generated instances (AOVs for example)."
|
||||
)
|
||||
)
|
||||
aov_filter: list[AOVFilterSubmodel] = SettingsField(
|
||||
default_factory=list,
|
||||
title="Reviewable products filter",
|
||||
|
|
@ -470,6 +477,7 @@ DEFAULT_DEADLINE_PLUGINS_SETTINGS = {
|
|||
"deadline_priority": 50,
|
||||
"publishing_script": "",
|
||||
"skip_integration_repre_list": [],
|
||||
"families_transfer": ["render3d", "render2d", "ftrack", "slate"],
|
||||
"aov_filter": [
|
||||
{
|
||||
"name": "maya",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue