Author Topic: Python SBSRender - set multiple entries or values  (Read 3875 times)

Hi ! I am trying out the SBSRender automation tool, and I am having some issue setting up multiple entries or values.

Here is the script for example:
Code: [Select]
batchtools.sbsrender_render(inputs=dir_path+'AutomationTest.sbsar',
output_format='png',
                                    input_graph="AutomationTest",
                                    input_graph_output="outputTexture",
                                    output_path=dir_path+'output/',
                                    output_name='test',                                   
                                    set_entry='refTexture@'+dir_path+'ref.png',
    set_entry='inputTexture@'+dir_path+'ref.png'
                                    ).wait()

I am getting this error:
Quote
File "G:\BakeTest\AutomationTest\ProcessAlbedo.py", line 42
    set_entry='inputTexture@'+dir_path+'ref.png'
SyntaxError: keyword argument repeated

How am I supposed to format the set_entry for multiple entries? I did not see any example of that in the samples.

Also, a smaller question, how can I set the input-bit-depth in the python API?

I hope someone will be able to help me. Thank you very much !

Hi Julien,
To provide several entries you can feed a list to the parameter 'set_entry', in your case this should work:
batchtools.sbsrender_render(inputs=dir_path+'AutomationTest.sbsar',
                           output_format='png',
                                    input_graph="AutomationTest",
                                    input_graph_output="outputTexture",
                                    output_path=dir_path+'output/',
                                    output_name='test',                                   
                                    set_entry=['refTexture@'+dir_path+'ref.png','inputTexture@'+dir_path+'ref.png']
                                    ).wait()


Per your second question, are you talking of the parameter output-bit-depth that is available when calling "sbsrender render " command ?

Thank you for the quick answer !

Oh, yes for the output-bit-depth, I made a stupid copy/paste mistake, hehe. Sorry for that.
Thank you again for the answer !