Browse Source

Add Tharquench Sizestealer

This uses a new 4-color scheme. Wow.
master
Fen Dweller 3 years ago
parent
commit
f2fa78533d
5 changed files with 5261 additions and 2732 deletions
  1. +5228
    -2727
      media/characters/tharquench-sizestealer/front.svg
  2. +22
    -0
      scripts/blender/addons/macrovision/ops.py
  3. +2
    -1
      scripts/blender/addons/macrovision/props.py
  4. +1
    -1
      scripts/blender/addons/macrovision/ui.py
  5. +8
    -3
      scripts/illustrator.jsx

+ 5228
- 2727
media/characters/tharquench-sizestealer/front.svg
File diff suppressed because it is too large
View File


+ 22
- 0
scripts/blender/addons/macrovision/ops.py View File

@@ -221,6 +221,28 @@ class MVAssignMaterials(bpy.types.Operator):
bm.free()
print("OK")
bpy.ops.object.mode_set(mode = 'OBJECT')
elif context.scene.mv_material_mode == 'OBJECT_NAMES':
while len(object.material_slots) > 0:
bpy.ops.object.material_slot_remove({'object': object})
light_choices = context.scene.mv_material_names_light.split(",")
medium_choices = context.scene.mv_material_names_medium.split(",")
bpy.ops.object.material_slot_add({'object': object})
missing_idx = len(object.material_slots) - 1

chosen = 'dark'

if any([choice in object.name for choice in medium_choices]):
chosen = 'medium'
if any([choice in object.name for choice in light_choices]):
chosen = 'light'
object.material_slots[0].material = bpy.data.materials[chosen]




return {'FINISHED'}



+ 2
- 1
scripts/blender/addons/macrovision/props.py View File

@@ -82,7 +82,8 @@ scene_props["mv_material_mode"] = bpy.props.EnumProperty(
items = (
('RANDOM', "Random", 'Randomly assign materials'),
('NAMES', "Names", 'Turn the specified names medium or light; the rest become dark'),
('FACE_MAPS', "Face Maps", "Assign a material for each face map")
('FACE_MAPS', "Face Maps", "Assign a material for each face map"),
('OBJECT_NAMES', "Object Names", "Same as Names, but with object names, not material names")
),
)



+ 1
- 1
scripts/blender/addons/macrovision/ui.py View File

@@ -64,7 +64,7 @@ class MVScenePanel(bpy.types.Panel):

box.prop(context.scene, "mv_material_mode")

if context.scene.mv_material_mode in ('NAMES', 'FACE_MAPS'):
if context.scene.mv_material_mode in ('NAMES', 'FACE_MAPS', 'OBJECT_NAMES'):
box.prop(context.scene, "mv_material_names_light")
box.prop(context.scene, "mv_material_names_medium")



+ 8
- 3
scripts/illustrator.jsx View File

@@ -5,20 +5,25 @@ var layers = doc.layers;
var traces = []

settings = [
{
name: "Bright",
color: 0x66,
threshold: 128
},
{
name: "Light",
color: 0x4d,
threshold: 128
threshold: 96
},
{
name: "Medium",
color: 0x33,
threshold: 96
threshold: 64
},
{
name: "Dark",
color: 0x1a,
threshold: 64
threshold: 32
},
{
name: "Black",


Loading…
Cancel
Save