initial code for namespace prefix lists
This commit is contained in:
+22
-3
@@ -1,4 +1,5 @@
|
||||
import bpy
|
||||
from bpy.types import PropertyGroup
|
||||
from bpy.props import (
|
||||
IntProperty,
|
||||
BoolProperty,
|
||||
@@ -28,7 +29,7 @@ def update_layer_name(self, context):
|
||||
# context.object.data.layers.active.info = self.layer_name
|
||||
|
||||
|
||||
class GP_PG_FixSettings(bpy.types.PropertyGroup):
|
||||
class GP_PG_FixSettings(PropertyGroup):
|
||||
|
||||
check_only : BoolProperty(
|
||||
name="Dry run mode (Check only)",
|
||||
@@ -147,7 +148,7 @@ class GP_PG_FixSettings(bpy.types.PropertyGroup):
|
||||
('UNLOCK', 'Unlock object mode', 'Toggle lock object mode Off', 2),
|
||||
))
|
||||
|
||||
class GP_PG_ToolsSettings(bpy.types.PropertyGroup):
|
||||
class GP_PG_ToolsSettings(PropertyGroup):
|
||||
eraser_radius : IntProperty(
|
||||
name="Eraser Radius", description="Radius of eraser brush",
|
||||
default=20, min=0, max=500, subtype='PIXEL')
|
||||
@@ -202,6 +203,7 @@ class GP_PG_ToolsSettings(bpy.types.PropertyGroup):
|
||||
description="The layer name, should describe the content of the layer",
|
||||
default="",
|
||||
update=update_layer_name)# update=None, get=None, set=None
|
||||
|
||||
"""
|
||||
reconnect_parent = bpy.props.PointerProperty(type =bpy.types.Object,poll=poll_armature)
|
||||
render_settings = bpy.props.BoolProperty(default = False)
|
||||
@@ -221,4 +223,21 @@ class GP_PG_ToolsSettings(bpy.types.PropertyGroup):
|
||||
opacity_layers = bpy.props.FloatProperty(min=0,max=1,default = 1,update = update_layers_opacity)
|
||||
|
||||
stroke_select = bpy.props.EnumProperty(items = [("POINT","Point",""),("STROKE","Stroke","")],update = update_selection_mode)
|
||||
"""
|
||||
"""
|
||||
|
||||
class GP_PG_namespace_props(PropertyGroup):
|
||||
|
||||
prefix : StringProperty(
|
||||
name="Prefix", description="Layer namespace prefix",
|
||||
default="")
|
||||
name : StringProperty(
|
||||
name="Name", description="Name that represent this prefix (used as hint and tooltip)",
|
||||
default="")
|
||||
hide : BoolProperty(
|
||||
name="Hide", description="Hide this prefix from layer prefex management",
|
||||
default=False)
|
||||
|
||||
class GP_PG_namespaces(PropertyGroup):
|
||||
idx : IntProperty(default=-1)
|
||||
|
||||
namespaces : bpy.props.CollectionProperty(type=GP_PG_namespace_props)
|
||||
Reference in New Issue
Block a user