Community Forums Archive

Go Back

Subject:How do I change a region to a marker?
Posted by: Sound Samurai
Date:6/3/2005 9:31:17 AM


This is related to my other scripting adventure but in case someone is to search for it later i ask separately..

How do one change a region to a marker, or vice versa?

Subject:RE: How do I change a region to a marker?
Reply by: _TJ
Date:6/3/2005 1:11:00 PM

You change the marker type. You also need to do this to change Markers to Command Markers.


foreach (SfAudioMarker mk in file.Markers)
{
if (mk.IsRegion)
{
mk.Type = MarkerType.Marker;
}
else
{
mk.Type = MarkerType.Region;
}
}




Go Back