Skip to main content
Bumped by Community user
Code markdown: Select the code and hit {} button. ctrl-K For blocks markdown is all indented one right, inline markdown will add backticks.
Source Link
batFINGER
  • 85.8k
  • 10
  • 118
  • 251

I have been using this code to add a new particle system and create a name for it... I need help to choose the particle type "HAIR" and set other parameters.. This script does not work because the [part.001] keeps changing and going up. It will only work once when creating the first name. I will need one particle system, so I can apply the code on other objects as well. It is a bit confusing. The MBall is used as a particle to cover the entire surface of an object.

import bpy   obj = bpy.context.active_object obj.modifiers.new("part", type='PARTICLE_SYSTEM') bpy.data.particles["part"].type = 'HAIR' bpy.data.particles["part"].count = 15000 bpy.data.particles["part"].use_advanced_hair = True bpy.data.particles["part"].render_type = 'OBJECT' bpy.data.particles["part"].instance_object = bpy.data.objects["Mball"] bpy.data.particles["part"].particle_size = 0.15 bpy.data.particles["part"].emit_from = 'FACE' bpy.data.particles["part"].distribution = 'RAND' ' 

obj = bpy.context.active_object obj.modifiers.new("part", type='PARTICLE_SYSTEM')

bpy.data.particles["part"].type = 'HAIR'

bpy.data.particles["part"].count = 15000 bpy.data.particles["part"].use_advanced_hair = True bpy.data.particles["part"].render_type = 'OBJECT' bpy.data.particles["part"].instance_object = bpy.data.objects["Mball"] bpy.data.particles["part"].particle_size = 0.15 bpy.data.particles["part"].emit_from = 'FACE' bpy.data.particles["part"].distribution = 'RAND' '

enter image description here

I have been using this code to add a new particle system and create a name for it... I need help to choose the particle type "HAIR" and set other parameters.. This script does not work because the [part.001] keeps changing and going up. It will only work once when creating the first name. I will need one particle system, so I can apply the code on other objects as well. It is a bit confusing. The MBall is used as a particle to cover the entire surface of an object.

import bpy 

obj = bpy.context.active_object obj.modifiers.new("part", type='PARTICLE_SYSTEM')

bpy.data.particles["part"].type = 'HAIR'

bpy.data.particles["part"].count = 15000 bpy.data.particles["part"].use_advanced_hair = True bpy.data.particles["part"].render_type = 'OBJECT' bpy.data.particles["part"].instance_object = bpy.data.objects["Mball"] bpy.data.particles["part"].particle_size = 0.15 bpy.data.particles["part"].emit_from = 'FACE' bpy.data.particles["part"].distribution = 'RAND' '

enter image description here

I have been using this code to add a new particle system and create a name for it... I need help to choose the particle type "HAIR" and set other parameters.. This script does not work because the [part.001] keeps changing and going up. It will only work once when creating the first name. I will need one particle system, so I can apply the code on other objects as well. It is a bit confusing. The MBall is used as a particle to cover the entire surface of an object.

import bpy   obj = bpy.context.active_object obj.modifiers.new("part", type='PARTICLE_SYSTEM') bpy.data.particles["part"].type = 'HAIR' bpy.data.particles["part"].count = 15000 bpy.data.particles["part"].use_advanced_hair = True bpy.data.particles["part"].render_type = 'OBJECT' bpy.data.particles["part"].instance_object = bpy.data.objects["Mball"] bpy.data.particles["part"].particle_size = 0.15 bpy.data.particles["part"].emit_from = 'FACE' bpy.data.particles["part"].distribution = 'RAND' ' 

enter image description here

added 100 characters in body
Source Link
Michael Teiniker
  • 1.1k
  • 1
  • 13
  • 28

I have been using this code to add a new particle system and create a name for it... I need help to choose the particle type "HAIR" and set other parameters.. This script does not work because the [part.001] keeps changing and going up. It will only work once when creating the first name. I will need one particle system, so I can apply the code on other objects as well. It is a bit confusing. The MBall is used as a particle to cover the entire surface of an object.

import bpy 

obj = bpy.context.active_object obj.modifiers.new("part", type='PARTICLE_SYSTEM')

bpy.data.particles["part"].type = 'HAIR'

bpy.data.particles["part"].count = 15000 bpy.data.particles["part"].use_advanced_hair = True bpy.data.particles["part"].render_type = 'OBJECT' bpy.data.particles["part"].instance_object = bpy.data.objects["Mball"] bpy.data.particles["part"].particle_size = 0.15 bpy.data.particles["part"].emit_from = 'FACE' bpy.data.particles["part"].distribution = 'RAND' '

enter image description here

I have been using this code to add a new particle system and create a name for it... I need help to choose the particle type "HAIR" and set other parameters.. This script does not work because the [part.001] keeps changing and going up. It will only work once when creating the first name. I will need one particle system, so I can apply the code on other objects as well. It is a bit confusing.

import bpy 

obj = bpy.context.active_object obj.modifiers.new("part", type='PARTICLE_SYSTEM')

bpy.data.particles["part"].type = 'HAIR'

bpy.data.particles["part"].count = 15000 bpy.data.particles["part"].use_advanced_hair = True bpy.data.particles["part"].render_type = 'OBJECT' bpy.data.particles["part"].instance_object = bpy.data.objects["Mball"] bpy.data.particles["part"].particle_size = 0.15 bpy.data.particles["part"].emit_from = 'FACE' bpy.data.particles["part"].distribution = 'RAND' '

enter image description here

I have been using this code to add a new particle system and create a name for it... I need help to choose the particle type "HAIR" and set other parameters.. This script does not work because the [part.001] keeps changing and going up. It will only work once when creating the first name. I will need one particle system, so I can apply the code on other objects as well. It is a bit confusing. The MBall is used as a particle to cover the entire surface of an object.

import bpy 

obj = bpy.context.active_object obj.modifiers.new("part", type='PARTICLE_SYSTEM')

bpy.data.particles["part"].type = 'HAIR'

bpy.data.particles["part"].count = 15000 bpy.data.particles["part"].use_advanced_hair = True bpy.data.particles["part"].render_type = 'OBJECT' bpy.data.particles["part"].instance_object = bpy.data.objects["Mball"] bpy.data.particles["part"].particle_size = 0.15 bpy.data.particles["part"].emit_from = 'FACE' bpy.data.particles["part"].distribution = 'RAND' '

enter image description here

added 100 characters in body
Source Link
Michael Teiniker
  • 1.1k
  • 1
  • 13
  • 28

I have been using this code to add a new particle system and create a name for it... I need help to choose the particle type "HAIR" and set other parameters.. This script does not work because the [part.001] keeps changing and going up. It will only work once when creating the first name. I will need the settingsone particle system, so I can apply the code on other objects as well. It is a bit confusing.

import bpy 

obj = bpy.context.active_object obj.modifiers.new("hollow""part", type='PARTICLE_SYSTEM')

bpy.data.particles["hollow"]particles["part"].type = 'HAIR'

bpy.data.particles["hollow"]particles["part"].count = 15000 bpy.data.particles["hollow"]particles["part"].use_advanced_hair = True bpy.data.particles["hollow"]particles["part"].render_type = 'OBJECT' bpy.data.particles["hollow"]particles["part"].instance_object = bpy.data.objects["Mball"] bpy.data.particles["hollow"]particles["part"].particle_size = 0.15 bpy.data.particles["hollow"]particles["part"].emit_from = 'FACE' bpy.data.particles["hollow"]particles["part"].distribution = 'RAND' '

enter image description here

I have been using this code to add a new particle system and create a name for it... I need help to choose the particle type "HAIR" and set other parameters.. This script does not work because the [part.001] keeps changing and going up. It will only work once when creating the first name. I will need the settings, so I can apply the code on other objects as well. It is a bit confusing.

import bpy 

obj = bpy.context.active_object obj.modifiers.new("hollow", type='PARTICLE_SYSTEM')

bpy.data.particles["hollow"].type = 'HAIR'

bpy.data.particles["hollow"].count = 15000 bpy.data.particles["hollow"].use_advanced_hair = True bpy.data.particles["hollow"].render_type = 'OBJECT' bpy.data.particles["hollow"].instance_object = bpy.data.objects["Mball"] bpy.data.particles["hollow"].particle_size = 0.15 bpy.data.particles["hollow"].emit_from = 'FACE' bpy.data.particles["hollow"].distribution = 'RAND'

I have been using this code to add a new particle system and create a name for it... I need help to choose the particle type "HAIR" and set other parameters.. This script does not work because the [part.001] keeps changing and going up. It will only work once when creating the first name. I will need one particle system, so I can apply the code on other objects as well. It is a bit confusing.

import bpy 

obj = bpy.context.active_object obj.modifiers.new("part", type='PARTICLE_SYSTEM')

bpy.data.particles["part"].type = 'HAIR'

bpy.data.particles["part"].count = 15000 bpy.data.particles["part"].use_advanced_hair = True bpy.data.particles["part"].render_type = 'OBJECT' bpy.data.particles["part"].instance_object = bpy.data.objects["Mball"] bpy.data.particles["part"].particle_size = 0.15 bpy.data.particles["part"].emit_from = 'FACE' bpy.data.particles["part"].distribution = 'RAND' '

enter image description here

added 100 characters in body
Source Link
Michael Teiniker
  • 1.1k
  • 1
  • 13
  • 28
Loading
added 48 characters in body
Source Link
Michael Teiniker
  • 1.1k
  • 1
  • 13
  • 28
Loading
deleted 21 characters in body
Source Link
Michael Teiniker
  • 1.1k
  • 1
  • 13
  • 28
Loading
added 12 characters in body
Source Link
Michael Teiniker
  • 1.1k
  • 1
  • 13
  • 28
Loading
deleted 76 characters in body
Source Link
Michael Teiniker
  • 1.1k
  • 1
  • 13
  • 28
Loading
deleted 76 characters in body
Source Link
Michael Teiniker
  • 1.1k
  • 1
  • 13
  • 28
Loading
added 2 characters in body
Source Link
Michael Teiniker
  • 1.1k
  • 1
  • 13
  • 28
Loading
Source Link
Michael Teiniker
  • 1.1k
  • 1
  • 13
  • 28
Loading