Detect Freeze Mesh feature enable state

Wayne
Wayne Member Posts: 7
Name Dropper First Comment
**

I want to know how to use a script to detect whether the "Freeze Mesh" feature has been successfully enabled on the selected geometry.

Thanks

Answers

  • James Derrick
    James Derrick Administrator, Employee Posts: 358
    Ancient Membership 100 Comments 100 Likes 25 Answers
    admin

    Hi @Wayne I think the @AKD-Scripting-Team might be able to help you with this.

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 913
    100 Answers 500 Comments 250 Likes Second Anniversary
    ✭✭✭✭

    Hi @Wayne , it does not seem possible to check on a body per body basis whether the option is active or not, however using (undocumented / unsupported...aka "use at your own risk") commands you can force the mesh freeze :

    part_id_list = [3]
    geo_part_list = [DataModel.GeoData.GeoPartById(id) for id in part_id_list]
    Model.FreezeMeshOnSelectedParts(geo_part_list)
    import context_menu
    context_menu.DoFreezeMeshOnSelectedParts(ExtAPI)