sbsrender_render_handlers module
Example of usage with SbsRenderOutputHandler (output_handlers module):
out = batchtools.sbsrender_render("output.sbsar", output_handler=True)
# print results
print("out.output", out.output)
for graph in out.get_results():
print("graph.identifier", graph.identifier)
for output in graph.outputs:
print("output.identifier", output.identifier, type(output.identifier))
print("output.label", output.label, type(output.label))
print("output.type", output.type, type(output.type))
print("output.uid", output.uid, type(output.uid))
print("output.usages", output.usages, type(output.usages))
print("output.value", output.value, type(output.value))
print("rendering Finish")
- class batchtools.sbsrender_render_handlers.SbsRenderGraphStruct(identifier='', outputs=None)
Bases:
object
- class batchtools.sbsrender_render_handlers.SbsRenderOutputStruct(identifier='', label='', type='', uid=0, usages=None, value=None)
Bases:
objectDepend of
SbsRenderOutputHandler. Simple structure of the graph’s output. To get an object instead of a dict.- Parameters:
identifier – output’s identifier
label – output’s label
type – output’s type
uid – output’s uid
usages – output’s usages
value – output’s value can be string or int or float