mirror of
https://github.com/blw1138/Zordon.git
synced 2026-06-09 13:39:24 -05:00
Add Blender plugin (#134)
* Unbind hostname to allow localhost submissions * Fix issue where multiple cameras were outputting to the same directory * Add Blender plugin
This commit is contained in:
@@ -100,10 +100,12 @@ class DistributedJobManager:
|
||||
# --------------------------------------------
|
||||
|
||||
def _create_render_job(self, new_job_attributes: dict, loaded_project_local_path: Path):
|
||||
output_path = new_job_attributes.get('output_path')
|
||||
output_filename = loaded_project_local_path.name if output_path else loaded_project_local_path.stem
|
||||
requested_output_path = new_job_attributes.get('output_path')
|
||||
output_filename = Path(str(requested_output_path)).name if requested_output_path else loaded_project_local_path.stem
|
||||
|
||||
output_dir = loaded_project_local_path.parent.parent / "output"
|
||||
if new_job_attributes.get('__use_output_subdir'):
|
||||
output_dir = output_dir / output_filename
|
||||
output_path = output_dir / output_filename
|
||||
os.makedirs(output_dir, exist_ok=True)
|
||||
logger.debug(f"New job output path: {output_path}")
|
||||
|
||||
Reference in New Issue
Block a user