Detect Freeze Mesh feature enable state

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

  • Administrator, Employee Posts: 310
    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.

  • Member, Moderator, Employee Posts: 888
    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 :

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

Welcome!

It looks like you're new here. Sign in or register to get started.