PresetData PresetData:GetPresetObject(channel, presetType, presetID)

channel is a string, though an integer will work
presetType is a string
presetID is a string
Returns a PresetData object

This function will return a PresetData class for the specified channel and preset from the console preset data in the Moving Light Assistant document.

It will return nil if there is an error. It is worth checking for this situation.

Example.

preset = PresetData:GetPresetObject(701, "1.Dimmer", "4")

This will return a PresetData object in the preset variable for channel 701, preset type 1.Dimmer with preset ID 4.

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.