User Guide Cancel

info_mesh_parser | Substance 3D Automation ToolKit

info_mesh_parser

class batchtools.info_mesh_parser.InfoBlockEnum
class batchtools.info_mesh_parser.InfoBlockEnum
 class batchtools.info_mesh_parser.InfoBlockEnum  

Bases: object

BoundingBox = 1
BoundingBox = 1
 BoundingBox = 1  
Entity = 0
Entity = 0
 Entity = 0  
Location = 2
Location = 2
 Location = 2  
Mesh = 3
Mesh = 3
 Mesh = 3  
Submesh = 5
Submesh = 5
 Submesh = 5  
UV = 4
UV = 4
 UV = 4  
class batchtools.info_mesh_parser.InfoPropertyEnum
class batchtools.info_mesh_parser.InfoPropertyEnum
 class batchtools.info_mesh_parser.InfoPropertyEnum  

Bases: object

BoundingBox = 5
BoundingBox = 5
 BoundingBox = 5  
Center = 9
Center = 9
 Center = 9  
Color = 1
Color = 1
 Color = 1  
ContainedUnitSquare = 15
ContainedUnitSquare = 15
 ContainedUnitSquare = 15  
Enabled = 16
Enabled = 16
 Enabled = 16  
GlobalTransform = 7
GlobalTransform = 7
 GlobalTransform = 7  
Label = 0
Label = 0
 Label = 0  
LocalTransform = 6
LocalTransform = 6
 LocalTransform = 6  
MaximalPoint = 11
MaximalPoint = 11
 MaximalPoint = 11  
MinimalPoint = 10
MinimalPoint = 10
 MinimalPoint = 10  
Name = 4
Name = 4
 Name = 4  
NumberPoints = 14
NumberPoints = 14
 NumberPoints = 14  
Size = 8
Size = 8
 Size = 8  
Triangles = 2
Triangles = 2
 Triangles = 2  
Udim = 13
Udim = 13
 Udim = 13  
Uv = 12
Uv = 12
 Uv = 12  
Vertices = 3
Vertices = 3
 Vertices = 3  
batchtools.info_mesh_parser.extract_block(text, token)
batchtools.info_mesh_parser.extract_block(text, token)
 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_first_value(prop, name)
 batchtools.info_mesh_parser.get_first_value(prop, name)  
batchtools.info_mesh_parser.get_property_values(block, *properties_enum)
batchtools.info_mesh_parser.get_property_values(block, *properties_enum)
 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.leading_space(line)
 batchtools.info_mesh_parser.leading_space(line)  
batchtools.info_mesh_parser.prepare_property_value(line)
batchtools.info_mesh_parser.prepare_property_value(line)
 batchtools.info_mesh_parser.prepare_property_value(line)  

Get help faster and easier

New user?