-
Notifications
You must be signed in to change notification settings - Fork 7
Properties
Bananenbrot edited this page Jun 27, 2023
·
13 revisions
The syntax is simple, write over the variable you want to add a new comment with the syntax:
#STB-Input-{Space}-{Datatype}[-{Sort}]
Symbolizes the Add-on name Sctip To Button.
Defined that this comment is registered as an input.
-
Panel
To show the property in the "Properties" Panel -
Dialog
To show the property in a popup window when the button is pressed
INFO: changes in Properties don't save the script to the disk
(only for Type: Input)
[column, row]
See Sort Properties for further instruction
#STB-Input-Panel-String
MyString = "This is my text"
#STB-Input-Panel-Int
MyInt = 3
#STB-Input-Panel-Float
MyFloat = 7.8
#STB-Input-Panel-Bool
MyBool = True
#STB-Input-Panel-Enum
MyEnum = ["dog",["dog", "cat", "bird"]]
#STB-Input-Panel-IntVector
MyIntVector = [7, 1, 30]
#STB-Input-Panel-FloatVector
MyFloatVector = [10.0, 2.0, 3.0]
#STB-Input-Panel-BoolVector
MyBoolVector = [True, False, False, True]
#STB-Input-Panel-List
MyList = ['HI', 10, ('select',['select', 'remove', 'move']), True]
#STB-Input-Panel-Object
MyObject = bpy.data.objects['Cube']
Release-Notes
If you have any questions, ask them here