/// <summary> /// Returns the name of the shot associated with the shotID /// If there are no shots associated with that ID, returns an empty string /// </summary> public string GetShotNameWithID(int shotID) { object shot = GetShotWithID(shotID); if (shot != null) { return((string)Late.Get(shot, "Name")); } else { return(""); } }
/// <summary> /// Returns the shot ID of the active shot, of the currently selected layer /// The Active shot is equivilent to the shot the user has clicked /// It doesn't mean the shot that is currently live or in preview, though it is possible the active shot is live or in preview /// </summary> public int GetActiveShotID() { int shotID = (int)Late.Get(_SelectedLayer, "ActiveShotID"); return(shotID); }
/// <summary> /// Returns true if the currently selected layer is visible, false otherwise /// </summary> public bool IsLayerVisible() { int visible = (int)Late.Get(_SelectedLayer, "Visible"); return(visible == 1); }
/// <summary> /// Returns true if the Audio is muted tot he speakers /// </summary> public bool IsAudioMutedToSpeakers() { int audioMuted = (int)Late.Get(_Document, "AudioMutedToSpeaker"); return(audioMuted == 1); }
/// <summary> /// Returns the index of the currently active Transition popup /// A value of 0 represents the left most popup in the Wirecast UI /// </summary> public int GetActiveTransitionIndex() { int activeTransIndex = (int)Late.Get(_Document, "ActiveTransitionIndex"); return(activeTransIndex); }
/// <summary> /// Returns the current sate of AutoLive in the selected document /// </summary> public bool IsAutoLiveOn() { int autoLiveOn = (int)Late.Get(_Document, "AutoLive"); return(autoLiveOn == 1); }
/// <summary> /// Returns the currently select Transition speed name /// /// For a list of valid transition speeds, see GetValidTransitionSpeeds() /// </summary> public string GetTransitionSpeed() { string transSpeed = (string)Late.Get(_Document, "TransitionSpeed"); return(transSpeed); }