Skip to content

GetAttributeByUIChannel

Anthony Headley edited this page May 4, 2020 · 1 revision

GetAttributeByUIChannel(int: UI Channel Index) userdata:Attribute

Brief:

Paramiters:

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

Returns:

Type Description
Attribute
nil If UI Channel Index does not exits

Examples:

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
Clone this wiki locally