-
-
Notifications
You must be signed in to change notification settings - Fork 5
GetAttributeByUIChannel
Anthony Headley edited this page May 4, 2020
·
1 revision
GetAttributeByUIChannel(int: UI Channel Index) userdata:Attribute
Name | Type | Description | Optional |
---|---|---|---|
UI Channel Index | int | ❓ Not sure what this value actually means but it seems to follow the Patch > Paramiter List realtime paramiters order and returns an Attribute DataObject |
Type | Description |
---|---|
Attribute | |
nil | If UI Channel Index does not exits |
local c = GetAttributeByUIChannel(3)
Echo(c:Class()) -- "[Attribute](Attribute)"
Echo(c.name) -- "ColorRGB_R"
Echo(c.Pretty) -- "R"
Echo(c.MainAttribute) -- -1
Echo(c.ActivationGroup:GetClass()) -- "[ActivationGroup](ActivationGroup)"
Echo(c.Feature:GetClass()) -- "[Feature](Feature)"
Echo(c.Special) -- "ColorRGB"
Echo(c.PhysicalUnit) -- "ColorComponent"
Echo(c.GeometryType) -- "None"
Echo(c.Color) -- ⚠ Seems to always return nil
Echo(c.Intensity) -- 1.0
Echo(c.LogChannels) -- 2
Echo(c.ChannelFunctions) -- 2