info_mesh_parser module

class batchtools.info_mesh_parser.InfoBlockEnum

Bases: object

BoundingBox = 1
GeomSubset = 4
Location = 2
Mesh = 0
UV = 3
class batchtools.info_mesh_parser.InfoPropertyEnum

Bases: object

BoundingBox = 7
Center = 11
Color = 3
ContainedUnitSquare = 17
Enabled = 18
Faces = 4
GeomSubsetPath = 1
GlobalTransform = 9
LocalTransform = 8
Material_ID = 2
MaximalPoint = 13
MinimalPoint = 12
Name = 6
NumberPoints = 16
Path = 0
Size = 10
Udim = 15
Uv = 14
Vertices = 5
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)