diff --git a/README.md b/README.md index f3fb4b6..4d29419 100755 --- a/README.md +++ b/README.md @@ -2,6 +2,19 @@ Blender addon for rendering setup and checks +## Environment variable available: + +File Output path templates : +- `RENDERTOOLBOX_EXR_PATH_TEMPLATE` : single base path file output +- `RENDERTOOLBOX_MULTILAYER_PATH_TEMPLATE` : multilayer base path file output + +Default Technical passes names: + +`RENDERTOOLBOX_TECH_PASSES` : comma separated list of socket names to separate as technical. +ex: `ao, vector, ...` + + + ## Development ### Cloning 1. Create a development directory, such as: diff --git a/constant.py b/constant.py deleted file mode 100644 index dd2c882..0000000 --- a/constant.py +++ /dev/null @@ -1,2 +0,0 @@ -# Technical pass names (names that should be in 32bit) -TECH_PASS_KEYWORDS = ['uv', 'normal', 'depth', 'position', 'vector', 'ao'] \ No newline at end of file diff --git a/fn.py b/fn.py index 542dc5d..1b61f5f 100755 --- a/fn.py +++ b/fn.py @@ -3,7 +3,6 @@ import os import re import json -from .constant import TECH_PASS_KEYWORDS from pathlib import Path @@ -287,7 +286,7 @@ def connect_to_file_output(node_list, file_out=None, base_path='', excludes=None if tech_pass_names: # Filter tech passes - tech_outputs = [o for o in all_outputs if o.name.lower() in tech_pass_names] # TECH_PASS_KEYWORDS + tech_outputs = [o for o in all_outputs if o.name.lower() in tech_pass_names] # Regular outputs (excluding crypto and tech passes) regular_outputs = [o for o in all_outputs if o not in crypto_outputs and o not in tech_outputs] else: diff --git a/operators/conform_collection_hierarchy.py b/operators/conform_collection_hierarchy.py old mode 100644 new mode 100755 diff --git a/operators/output_management.py b/operators/output_management.py old mode 100644 new mode 100755 diff --git a/operators/output_search_and_replace.py b/operators/output_search_and_replace.py old mode 100644 new mode 100755 diff --git a/operators/output_setup.py b/operators/output_setup.py index 52817be..2db8fd3 100755 --- a/operators/output_setup.py +++ b/operators/output_setup.py @@ -10,8 +10,6 @@ from bpy.props import (StringProperty, EnumProperty, CollectionProperty) -from ..constant import TECH_PASS_KEYWORDS - # region Search and replace ## -- Search and replace to batch rename item in collection property diff --git a/operators/scene_checker.py b/operators/scene_checker.py old mode 100644 new mode 100755 diff --git a/operators/simplify_conflicts.py b/operators/simplify_conflicts.py old mode 100644 new mode 100755 diff --git a/operators/store_visibility_states.py b/operators/store_visibility_states.py old mode 100644 new mode 100755 diff --git a/operators/utility.py b/operators/utility.py old mode 100644 new mode 100755 diff --git a/operators/viewlayer_management.py b/operators/viewlayer_management.py old mode 100644 new mode 100755 diff --git a/operators/visibility_conflicts.py b/operators/visibility_conflicts.py old mode 100644 new mode 100755 diff --git a/preferences.py b/preferences.py old mode 100644 new mode 100755 diff --git a/properties.py b/properties.py old mode 100644 new mode 100755