From 9d414eda2fc33c510020ab9de216fac643934c89 Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Sat, 31 Aug 2024 11:53:37 +0200 Subject: [PATCH] Add MESHROOM_SUBMIT_LABEL to customize the label of a node when submitted on renderfarm --- bin/meshroom_batch | 4 ++-- meshroom/ui/app.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/meshroom_batch b/bin/meshroom_batch index f9d2f455..fe0e9a7a 100755 --- a/bin/meshroom_batch +++ b/bin/meshroom_batch @@ -64,8 +64,8 @@ parser.add_argument('--submit', help='Submit on renderfarm instead of local comp action='store_true') parser.add_argument("--submitLabel", type=str, - default='[Meshroom] {projectName}', - help="Label of a node in the submitter") + default=os.environ.get('MESHROOM_SUBMIT_LABEL', '[Meshroom] {projectName}'), + help="Label of a node when submitted on renderfarm.") parser.add_argument('--submitter', type=str, default='SimpleFarm', diff --git a/meshroom/ui/app.py b/meshroom/ui/app.py index 85245e82..1a837923 100644 --- a/meshroom/ui/app.py +++ b/meshroom/ui/app.py @@ -121,8 +121,8 @@ Additional Resources: '--submitLabel', metavar='SUBMITLABEL', type=str, - help='Label of a node in the submitter.', - default='[Meshroom] {projectName}' + help='Label of a node when submitted on renderfarm.', + default=os.environ.get('MESHROOM_SUBMIT_LABEL', '[Meshroom] {projectName}'), ) # Project and Input Options