- Substance 3D home
- Home
- Command Line Tools
- Command Line overview
- sbsbaker
- sbscooker
- sbsmtools
- sbsmutator
- sbsrender
- sbsupdater
- Command Line overview
- Pysbs - Python API
- Pysbs - Python API overview
- Getting started
- General topics
- Examples
- API Content
- API Content overview
- Substance definitions
- Common interfaces
- compnode
- context projectmgr
- graph
- mdl
- modelgraphindex
- modelannotationnames
- modelgraph
- modelgraphgenerator
- modelgraphimplementation
- modelnodenames
- modeloperand
- modulegraphindex
- moduleannotation
- moduleconnection
- modulegraph
- modulegraphgenerator
- modulegraphimplementation
- modulegraphlibrary
- modulegraphregister
- modulenode
- modulenodeimplementation
- modulenodeinstance
- moduleoperand
- moduleoutputbridging
- moduleparaminput
- params
- projectmgrdoc
- sbsarchive
- sbscommon
- sbspreset
- sbsproject
- substance
- Libraries
- sbsenum
- sbslibrary
- sbsbakerslibrary
- Helpers
- Execution context
- API Change log
- Samples
- Setup and Getting Started
- Integrations
- Substance Maya toolset
- Changelog overview
output_handlers
class batchtools.output_handlers.OutputProcessHandler(process, print_stdout=True, print_stderr=True)
Bases: object
Base class used by the different batchtool’s OutputHandler object. It wrapped a Popen process and handle the output stream. It stop python interpreter during the time it takes for the process to finish, in same way that Popen.wait() function. the OutputProcessHandler but manage the Popen process itself (return of batchtool command).
Parameters: |
|
---|
dump(iostream)
Dump the output in an iostream
Parameters: | iostream – |
---|---|
Returns: |
get_results()
output
return a list from the raw output data
Returns: | dict |
---|
print_stderr()
print_stdout()
stderr
stdout
wait()
only here for future retro compatibility, if we move OutputHandler as default return result and avoid error. :return:
exception batchtools.output_handlers.OutputProcessHandlerPipeError(msg)
Bases: Exception
args
with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
class batchtools.output_handlers.SbsBakerInfoOutputHandler(*args, **kwargs)
Bases: batchtools.output_handlers.OutputProcessHandler
SbsRenderOutputHandler handle the batchtools.sbsrender_render output. It can retrieve the different output data like a data formed list or a dedicated list
Parameters: |
|
---|
dump(iostream)
Dump the output in an iostream
Parameters: | iostream – |
---|---|
Returns: |
get_results()
Parse output data and return a correspondent objects list
Returns: | list<SbsBakerInfoEntityStruct > |
---|
output
return a list from the raw output data
Returns: | dict |
---|
print_stderr()
print_stdout()
stderr
stdout
wait()
only here for future retro compatibility, if we move OutputHandler as default return result and avoid error. :return:
class batchtools.output_handlers.SbsRenderOutputHandler(*args, **kwargs)
Bases: batchtools.output_handlers.OutputProcessHandler
SbsRenderOutputHandler handle the batchtools.sbsrender_render output. It can retrieve the different output data like a data formed list or a dedicated list
Parameters: |
|
---|
dump(iostream)
Dump the output in an iostream
Parameters: | iostream – |
---|---|
Returns: |
get_results()
Parse output data and return a correspondent objects list
Returns: | list<SbsRenderOutputHandlerGraphStruct > |
---|
get_results_as_dict()
Parse output data and return a list of dict
Returns: | list |
---|
output
return a list from the raw output data
Returns: | dict |
---|
print_stderr()
print_stdout()
stderr
stdout
wait()
only here for future retro compatibility, if we move OutputHandler as default return result and avoid error. :return:
class batchtools.output_handlers.SpotColorInfoOutputHandler(*args, **kwargs)
Bases: batchtools.output_handlers.OutputProcessHandler
SbsRenderOutputHandler handle the batchtools.sbsrender_render output. It can retrieve the different output data like a data formed list or a dedicated list
Parameters: |
|
---|
dump(iostream)
Dump the output in an iostream
Parameters: | iostream – |
---|---|
Returns: |
get_results()
Parse output data and return a correspondent objects list
Returns: | list<SbsRenderOutputHandlerGraphStruct > |
---|
get_results_as_dict()
Parse output data and return a list of dict
Returns: | list |
---|
output
return a list from the raw output data
Returns: | dict |
---|
print_stderr()
print_stdout()
stderr
stdout
wait()
only here for future retro compatibility, if we move OutputHandler as default return result and avoid error. :return: