Blender Kitsu: Move Render Review into Blender Kitsu #296
@ -469,11 +469,26 @@ class KITSU_addon_preferences(bpy.types.AddonPreferences):
|
||||
# Render Review
|
||||
####################
|
||||
|
||||
def set_farm_dir(self, input):
|
||||
self['farm_output_dir'] = input
|
||||
return
|
||||
|
||||
def get_farm_dir(
|
||||
self,
|
||||
) -> str:
|
||||
if get_safely_string_prop(self, 'farm_output_dir') == "" and self.project_root_path:
|
||||
dir = self.project_root_path.joinpath("render/")
|
||||
if dir.exists():
|
||||
return dir.as_posix()
|
||||
return get_safely_string_prop(self, 'farm_output_dir')
|
||||
|
||||
farm_output_dir: bpy.props.StringProperty( # type: ignore
|
||||
name="Farm Output Directory",
|
||||
description="Should point to: /render/sprites/farm_output",
|
||||
default="/render/sprites/farm_output",
|
||||
description="Directory used as 'Render Output Root' when submitting job to Flamenco. Usually points to: {project}/render/",
|
||||
default="",
|
||||
subtype="DIR_PATH",
|
||||
get=get_farm_dir,
|
||||
set=set_farm_dir,
|
||||
)
|
||||
|
||||
shot_name_filter: bpy.props.StringProperty( # type: ignore
|
||||
|
Loading…
Reference in New Issue
Block a user