Difference between revisions of "CueInfo:GetSelectedCueInfo"

From Moving Light Assistant
Jump to: navigation, search
(Added page.)
 
m
 
Line 8: Line 8:
 
''Example.''
 
''Example.''
  
:<code>cueinfo = CueInfo:GetSelectedCueInfot()</code>
+
:<code>cueinfo = CueInfo:GetSelectedCueInfo()</code>
 
:<code>if cueinfo ~= nil then</code>
 
:<code>if cueinfo ~= nil then</code>
 
::<code>cueNumber = cueinfo.CueNumber</code>
 
::<code>cueNumber = cueinfo.CueNumber</code>
 
:<code>end</code>
 
:<code>end</code>

Latest revision as of 15:59, 17 December 2017

GetSelectedCueInfo()

Returns an CueInfo structure.

Note this function has a bug and does not work correctly prior to MLA v1.3.1 Beta 14.

This function will return a CueInfo structure for the currently selected cue in the Cue List view. It will return nil if no cue is selected. It is worth adding checking for this situation.

Example.

cueinfo = CueInfo:GetSelectedCueInfo()
if cueinfo ~= nil then
cueNumber = cueinfo.CueNumber
end