MCPcopy Index your code
hub / github.com/coldtype/st2 / ST2PropertiesGroup

Class ST2PropertiesGroup

ST2/properties.py:83–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82
83class ST2PropertiesGroup(bpy.types.PropertyGroup):
84 text: bpy.props.StringProperty(name="Text", default="Text",
85 update=lambda p, c: update_type_and_copy("text", p, c))
86
87 newline_character: bpy.props.StringProperty(name="Newline Character", default="¶",
88 update=lambda p, c: update_type_and_copy("newline_character", p, c))
89
90 text_mode: bpy.props.EnumProperty(name="Text Mode",
91 description="Where to source the text",
92 items=[
93 ("UI", "UI", "As typed above", "SMALL_CAPS", 0),
94 ("BLOCK", "Block", "From a text-block in Blender", "TEXT", 1),
95 ("FILE", "Text file", "From an external text file", "FILE_TEXT", 2),
96 ("SEQUENCE", "Sequence", "From the Blender video sequencer", "SEQ_SEQUENCER", 3),
97 ],
98 default="UI",
99 update=lambda p, c: update_type_and_copy("text_mode", p, c))
100
101 text_file: bpy.props.StringProperty(name="Text File", default="", subtype="FILE_PATH", update=lambda p, c: update_type_and_copy("text_file", p, c))
102
103 text_block: bpy.props.StringProperty(name="Text Block", default="", update=lambda p, c: update_type_and_copy("text_block", p, c))
104
105 text_indexed: bpy.props.BoolProperty(name="Text Indexed", default=False, update=lambda p, c: update_type_and_copy("text_indexed", p, c))
106
107 text_index: bpy.props.IntProperty(name="Text Index", default=1, min=1, update=lambda p, c: update_type_and_copy("text_index", p, c))
108
109 text_sequence_channel: bpy.props.IntProperty(name="Text Sequence Channel", default=1, min=1, update=lambda p, c: update_type_and_copy("text_sequence_channel", p, c))
110
111 script_mode: bpy.props.EnumProperty(name="Script Mode",
112 description="Where to source the script",
113 items=[
114 ("BLOCK", "Block", "From a text-block in Blender", "TEXT", 0),
115 ("FILE", "Text file", "From an external text file", "FILE_TEXT", 1),
116 ],
117 default="FILE",
118 update=lambda p, c: update_type_and_copy("script_mode", p, c))
119
120 script_file: bpy.props.StringProperty(name="Script File", default="", subtype="FILE_PATH", update=lambda p, c: update_type_and_copy("script_file", p, c))
121
122 script_block: bpy.props.StringProperty(name="Script Block", default="", update=lambda p, c: update_type_and_copy("script_block", p, c))
123
124 script_enabled: bpy.props.BoolProperty(name="Script Enabled", default=False, update=lambda p, c: update_type_and_copy("script_enabled", p, c))
125
126 script_watch: bpy.props.BoolProperty(name="Script Watch", default=False)
127
128 script_kwargs: bpy.props.StringProperty(name="Script Args", default="", update=lambda p, c: update_type_and_copy("script_kwargs", p, c))
129
130 #calc1_target: bpy.props.StringProperty(name="Calc1 Target", default="", update=lambda p, c: update_type_and_copy("calc1_target", p, c))
131
132 calc1_target: bpy.props.EnumProperty(name="Calc1 Target", items=[
133 ("fvar_axis1", "fvar_axis1", "fvar_axis1", "MOD_INSTANCE", 0),
134 ("fvar_axis2", "fvar_axis2", "fvar_axis2", "MOD_INSTANCE", 1),
135 ("fvar_axis3", "fvar_axis3", "fvar_axis3", "MOD_INSTANCE", 2),
136 ], default="fvar_axis1", update=lambda p, c: update_type_and_copy("calc1_target", p, c))
137
138 #calc1_object: bpy.props.StringProperty(name="Calc1 Object", default="", update=lambda p, c: update_type_and_copy("calc1_object", p, c))
139
140 calc1_object: bpy.props.PointerProperty(name="Calc1 Object", type=bpy.types.Object)

Callers

nothing calls this directly

Calls 4

update_type_and_copyFunction · 0.85
axispropFunction · 0.85
axisprop_offsetFunction · 0.85
feapropFunction · 0.85

Tested by

no test coverage detected