Last updated on
May 24, 2023
- 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
info_mesh_parser
class batchtools.info_mesh_parser.InfoBlockEnum
Bases: object
BoundingBox = 1
Entity = 0
Location = 2
Mesh = 3
Submesh = 5
UV = 4
class batchtools.info_mesh_parser.InfoPropertyEnum
Bases: object
BoundingBox = 5
Center = 9
Color = 1
ContainedUnitSquare = 15
Enabled = 16
GlobalTransform = 7
Label = 0
LocalTransform = 6
MaximalPoint = 11
MinimalPoint = 10
Name = 4
NumberPoints = 14
Size = 8
Triangles = 2
Udim = 13
Uv = 12
Vertices = 3
batchtools.info_mesh_parser.extract_block(text, token)
extract data block from a given token :param text: mesh info :param token: InfoBlockEnum :return:
batchtools.info_mesh_parser.get_first_value(prop, name)
batchtools.info_mesh_parser.get_property_values(block, *properties_enum)
extract properties from a block :param block: :param properties_enum: :return:
batchtools.info_mesh_parser.leading_space(line)
batchtools.info_mesh_parser.prepare_property_value(line)