init
This commit is contained in:
17
Purchased/HG/scripts/Remove_particle_systems.py
Normal file
17
Purchased/HG/scripts/Remove_particle_systems.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""Remove all particle systems from the body object.
|
||||
ALSO REMOVES EYEBROWS AND EYELASHES.
|
||||
"""
|
||||
|
||||
import bpy
|
||||
from HumGen3D import Human
|
||||
|
||||
|
||||
def main(context: bpy.types.Context, human: Human):
|
||||
"""Remove all particle systems from the body object.
|
||||
|
||||
Args:
|
||||
context (bpy.types.Context): Blender context.
|
||||
human (Human): Instance of a single human. Script will be run for each human.
|
||||
"""
|
||||
for mod in human.hair.modifiers:
|
||||
human.objects.body.modifiers.remove(mod)
|
||||
Reference in New Issue
Block a user