PresetInfo:SavePreset(presetObject)

presetObject is a PresetInfo class/structure.

This function will save changes to previously retrieved a PresetInfo class/structure. If changes are made to a PresetInfo class/structure, then this function must be called to write the changes back into the Moving Light Assistant show document. It will work with both PresetInfo class/structures that were retrieved from a Preset or Channel

Examples.

preset = PresetInfo:GetSelectedPreset()
if preset ~= nil then
    preset.PresetName = "My new preset name"
    PresetInfo:SavePreset(preset)
end

This will change the name of the currently selected preset to “My new preset name”.

channel = PresetInfo:GetSelectedChannel()
if preset ~= nil then
    channel.ChannelNumber = 5
    channel.FixtureNumber = 5
    channel.FixtureType = "MAC Viper Performance"
    PresetInfo:SavePreset(channel)
end

This will change the currently selected channel to ChannelNumber 5, FixtureNumber 5 and FixtureType “MAC Viper Performance”.

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.