Changeset View
Changeset View
Standalone View
Standalone View
object_fracture_crack/__init__.py
| Context not available. | |||||
| bl_info = { | bl_info = { | ||||
| "name": "Cell Fracture Crack It", | "name": "Cell Fracture Crack It", | ||||
| "author": "Nobuyuki Hirakata", | "author": "Nobuyuki Hirakata", | ||||
| "version": (0, 1, 3), | "version": (0, 2, 0), | ||||
| "blender": (2, 79, 0), | "blender": (2, 79, 0), | ||||
| "location": "View3D > Toolshelf > Create Tab", | "location": "View3D > Toolshelf > Create Tab", | ||||
| "description": "Displaced Cell Fracture Addon", | "description": "Displaced Cell Fracture Addon", | ||||
| Context not available. | |||||
| # In Panel subclass, In bpy.types.Operator subclass, | # In Panel subclass, In bpy.types.Operator subclass, | ||||
| # reference them by context.scene.crackit | # reference them by context.scene.crackit | ||||
| fracture_childverts = BoolProperty( | fracture_source = EnumProperty( | ||||
| name="From Child Verts", | name="From", | ||||
| description="Use child object's vertices and position for origin of crack", | description="Position for origin of crack", | ||||
| default=False | items=[('PARTICLE_OWN', "Own Particles", "All particle systems of the source object"), | ||||
| ) | ('VERT_OWN', "Own Verts", "Use own vertices"), | ||||
| fracture_scalex = FloatProperty( | ('VERT_CHILD', "Child Verts", "Use child object vertices"), | ||||
| name="Scale X", | ('PARTICLE_CHILD', "Child Particles", "All particle systems of the child objects"), | ||||
| description="Scale X", | ('PENCIL', "Grease Pencil", "This object's grease pencil"), | ||||
| default=1.00, | ], | ||||
| min=0.00, | default='PENCIL' | ||||
| max=1.00 | |||||
| ) | |||||
| fracture_scaley = FloatProperty( | |||||
| name="Scale Y", | |||||
| description="Scale Y", | |||||
| default=1.00, | |||||
| min=0.00, | |||||
| max=1.00 | |||||
| ) | |||||
| fracture_scalez = FloatProperty( | |||||
| name="Scale Z", | |||||
| description="Scale Z", | |||||
| default=1.00, | |||||
| min=0.00, | |||||
| max=1.00 | |||||
| ) | ) | ||||
| fracture_div = IntProperty( | fracture_div = IntProperty( | ||||
| name="Max Crack", | name="Crack Limit", | ||||
| description="Max Crack", | description="Max Crack", | ||||
| default=100, | default=4, | ||||
| min=1, | min=1, | ||||
| max=10000 | max=5000 | ||||
| ) | ) | ||||
| fracture_margin = FloatProperty( | fracture_recursion = IntProperty( | ||||
| name="Margin Size", | name="Recursion", | ||||
| description="Margin Size", | description="Recursion", | ||||
| default=0.001, | default=0, | ||||
| min=0.000, | min=0, | ||||
| max=1.000 | max=5 | ||||
| ) | ) | ||||
| extrude_offset = FloatProperty( | pre_simplify = FloatProperty( | ||||
| name="Offset", | name="Simplify Base Mesh", | ||||
| description="Extrude Offset", | description="Simplify base mesh before making crack. Lower face size, faster calculation.", | ||||
| default=0.10, | default=0.00, | ||||
| min=0.00, | min=0.00, | ||||
| max=2.00 | |||||
| ) | |||||
| extrude_random = FloatProperty( | |||||
| name="Random", | |||||
| description="Extrude Random", | |||||
| default=0.30, | |||||
| min=-1.00, | |||||
| max=1.00 | max=1.00 | ||||
| ) | ) | ||||
| # Path of the addon | # Path of the addon | ||||
| material_addonpath = os.path.dirname(__file__) | material_addonpath = os.path.dirname(__file__) | ||||
| # Selection of material preset | # Selection of material preset | ||||
| Context not available. | |||||