Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproperties.lua
More file actions
Latest commit
32 lines (32 loc) · 1.15 KB
/
Copy pathproperties.lua
File metadata and controls
32 lines (32 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
table.insert(props,
{ -- Depending on the Model, there might be different pages or ctls exposed. The most common application being a change in channel count of a mixer of some sort.
Name="Model",
Type="enum",
Choices= {"Model 1", "Model 2"},
Value="Model 1", -- This determines the 'default' value when the plugin is dragged into the design
}
)
table.insert(props,
{ -- This dynamically changes the number of Input channels on the mixer depending on what the user inputs, which gives your plugin a lot of flexibility
Name="Inputs",
Type="integer",
Min=1, -- Integer property types need a lowest extent (Min) and a highest extent (Max) value specified
Max=10,
Value=5, -- This is the default value when the plugin is dragged into the design
}
)
table.insert(props,
{
Name="Button Styles",
Type="enum",
Choices= {"Gloss","Flat"},
Value="Gloss",
}
)
table.insert(props,
{
Name="Serial Pin",
Type="boolean",
Value=false, -- This is the default 'state' of this boolean property
}
)