Set Flamenco Settings in Shot Builder Hook Files #250

Closed
opened 2024-02-26 18:47:33 +01:00 by Nick Alberelli · 3 comments
Member

Requested by @eyecandy

TinyNick hey! is it possible to set the render output path and path components for flamenco in the hooks for lighting files? I wasnt successful in my attempt during pets and was wondering if you could get that to work somehow...

those are the settings i would like

image

Requested by @eyecandy > TinyNick hey! is it possible to set the render output path and path components for flamenco in the hooks for lighting files? I wasnt successful in my attempt during pets and was wondering if you could get that to work somehow... > those are the settings i would like > ![image](/attachments/9285ed94-3582-4a17-9a21-5a1cac195077)
Nick Alberelli added the
Kind
Enhancement
Kind
Studio Request
labels 2024-02-26 18:47:34 +01:00
Author
Member

This appears to be working on my side but I am going to test it again tomorrow before I roll it out. It does require the flamenco add-on to be enabled

import bpy

def setup_flamenco_settings(scene:bpy.types.Scene):
    if not "flamenco" in bpy.context.preferences.addons:
        return

    bpy.ops.flamenco.fetch_job_types()
    scene.flamenco_job_type = 'simple-blender-render'
    scene.flamenco_job_settings.render_output_root = "//render/gold"
    scene.flamenco_job_settings.add_path_components = 3
    
if __name__ == "__main__":
    setup_flamenco_settings(bpy.context.scene)

This appears to be working on my side but I am going to test it again tomorrow before I roll it out. It does require the flamenco add-on to be enabled ```python import bpy def setup_flamenco_settings(scene:bpy.types.Scene): if not "flamenco" in bpy.context.preferences.addons: return bpy.ops.flamenco.fetch_job_types() scene.flamenco_job_type = 'simple-blender-render' scene.flamenco_job_settings.render_output_root = "//render/gold" scene.flamenco_job_settings.add_path_components = 3 if __name__ == "__main__": setup_flamenco_settings(bpy.context.scene) ```
Author
Member

@eyecandy This isn't working when I tested it on actual production files. I will continue to look into this.

Alright I have got it to work, the error I was getting was actually related to my test setup, I have got it working now. Will commit change to svn!

@eyecandy ~~This isn't working when I tested it on actual production files. I will continue to look into this.~~ Alright I have got it to work, the error I was getting was actually related to my test setup, I have got it working now. Will commit change to svn!
Author
Member

Commited to SVN Revision 1981

Commited to SVN Revision 1981
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/blender-studio-pipeline#250
No description provided.