Model.ME_ModulePosition#
- Model.ME_ModulePosition(part_entity, position=0, reserved=0)#
Positions a module using its hierarchical transformation matrices.
- Parameters:
part_entity (Entity) – The object describing the part entity to position.
position (int) –
0 - Transform to the normal position. This is the position the module will arrive to after applying all necessary hierarchical relative matrices.
1 - Transform to the original position. This is the neutral position the module might be saved in the original representation file as. It is the original position before hierarchical relative matrices are applied.
reserved (int) – Reserved for future use. Must be set to 0.
Example#
Transform module part with ID 168 back to its original representation file position#import hm import hm.entities as ent model = hm.Model() model.ME_ModulePosition(part_entity=ent.Part(model, 168), position=1, reserved=0)