2
$\begingroup$

Pretty straightforward, I am looking for an option or key command to hide all the particle systems in the current scene. Is this possible or do I need to write a script?

$\endgroup$
0
$\begingroup$

Via script it would looks like this:

import bpy
for object in bpy.data.objects:
    if bpy.context.scene in object.users_scene:
        try:
            for modifier in object.modifiers:
                if modifier.type == 'PARTICLE_SYSTEM':
                    modifier.show_viewport = False
        except:
            pass

And to redisplay all particle systems in the scene:

import bpy
for object in bpy.data.objects:
    if bpy.context.scene in object.users_scene:
        try:
            for modifier in object.modifiers:
                if modifier.type == 'PARTICLE_SYSTEM':
                    modifier.show_viewport = True
        except:
            pass
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.