Ben Traje
← Back to 3ds-max

Batch Disable for Skin Modifiers in 3ds Max (Python)

07 Jul 26 (1d ago)

Not quite an secret but still worth mentioning that even if an objects are hidden, under the hood, some of modifiers are still getting calculated. And if you are navigating through a scene with multiple objects, the viewport chugs along.

So here is a script to turn off skin modifiers but can really be repurpose to any modifiers.

import pymxs

rt = pymxs.runtime

def disable_all_skin_modifiers():
    disabled_count = 0
    
    # Loop through every object in the scene
    for obj in rt.objects:
        # Loop through every modifier on the current object
        for mod in obj.modifiers:
            # Check if the modifier is a Skin modifier
            if rt.classOf(mod) == rt.Skin:
                mod.enabled = False
                disabled_count += 1
                
    print(f"Success: Disabled {disabled_count} Skin modifier(s) in the scene.")

# Run the function
disable_all_skin_modifiers()