better variable/setting naming and add description for it

This commit is contained in:
MustafaJafar 2024-03-04 21:40:53 +02:00
parent d7c0dff7b7
commit 746819ef51
2 changed files with 8 additions and 4 deletions

View file

@ -70,7 +70,7 @@ class CollectFilesForCleaningUp(pyblish.api.InstancePlugin,
# aovs.values() is a list of lists
files.extend(sum(aovs.values(), []))
# Intermediate render files.
# Intermediate exported render files.
# TODO 1:For products with split render enabled,
# We need to calculate all exported frames. as.
# `ifdFile` should be a list of files.
@ -78,7 +78,7 @@ class CollectFilesForCleaningUp(pyblish.api.InstancePlugin,
# Karma has more intermediate files
# e.g. USD and checkpoint
ifdFile = instance.data.get("ifdFile")
if self.include_intermediate_files and ifdFile:
if self.intermediate_exported_render and ifdFile:
files.append(ifdFile)
# Non Render Products with no frames

View file

@ -44,7 +44,11 @@ class CollectFilesForCleaningUpModel(BaseSettingsModel):
enabled: bool = SettingsField(title="Enabled")
optional: bool = SettingsField(title="Optional")
active: bool = SettingsField(title="Active")
include_intermediate_files: bool = SettingsField(title="Include Intermediate Render Files")
intermediate_exported_render: bool = SettingsField(
title="Include Intermediate Exported Render Files",
description="Include intermediate exported render scenes for cleanup"
" (.idf, .ass, .usd, .rs) for render instances.",
)
families: list[str] = SettingsField(
default_factory=list,
enum_resolver=product_types_enum,
@ -120,7 +124,7 @@ DEFAULT_HOUDINI_PUBLISH_SETTINGS = {
"enabled": False,
"optional": True,
"active": True,
"include_intermediate_files": False,
"intermediate_exported_render": False,
"families" : []
},
"ValidateContainers": {