Model.markmovetoskeleton#
- Model.markmovetoskeleton(skeleton_id, collection)#
Moves memberjoints, members or memberpanels to specified skeleton entity following a top-down approach. If a member is moved, the associated member joints will also be moved to the skeleton root. Similarly, if a member panel is moved, the associated members along with the member joints comprising the members will be moved to the skeleton root.
- Parameters:
skeleton_id (unsigned int) – The ID of the skeleton to which the entities are moved to.
collection (Collection) – The collection containing the entities to be moved. Valid entities are members, memberjoints and memberpanels.
Example#
Move member “ member1 “ and associated member joints to skeleton with ID 1#import hm import hm.entities as ent model = hm.Model() members = hm.Collection(model, ent.Member, "name=member1") model.markmovetoskeleton(skeleton_id=1, collection=members)