Difference between revisions of "CueInfo:SaveCueInfo"
From Moving Light Assistant
(Added Page.) |
m |
||
Line 10: | Line 10: | ||
:<code>cueinfo = CueInfo:GetSelectedCueInfo()</code> | :<code>cueinfo = CueInfo:GetSelectedCueInfo()</code> | ||
:<code>if cueinfo ~= nil then</code> | :<code>if cueinfo ~= nil then</code> | ||
− | ::<code>cueinfo. | + | ::<code>cueinfo.Image1Caption = "Photo 1 Caption"</code> |
::<code>SaveCueInfo(cueinfo)</code> | ::<code>SaveCueInfo(cueinfo)</code> | ||
:<code>end</code> | :<code>end</code> |
Latest revision as of 16:00, 17 December 2017
SaveCueInfo(cueinfo)
- cueInfo is the CueInfo structure to save.
Note this function is only available in MLA v1.3.1 Beta 14 and onwards.
This function will store the passed CueInfo structure. This is useful when the structure has been modified and the changes need storing. For every call to SaveCueInfo, an entry in the applications Undo/Redo stack will be created so that it is possible to Undo the action after the script has finished.
Example.
cueinfo = CueInfo:GetSelectedCueInfo()
if cueinfo ~= nil then
cueinfo.Image1Caption = "Photo 1 Caption"
SaveCueInfo(cueinfo)
end