mirror of
				https://github.com/cookiengineer/audacity
				synced 2025-11-04 08:04:06 +01:00 
			
		
		
		
	Script for 'after'
This commit is contained in:
		
				
					committed by
					
						
						Paul Licameli
					
				
			
			
				
	
			
			
			
						parent
						
							825df0f213
						
					
				
				
					commit
					c8bbbe3aa6
				
			
							
								
								
									
										41
									
								
								scripts/piped-work/docimages_after.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								scripts/piped-work/docimages_after.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,41 @@
 | 
			
		||||
# docimages_after.py
 | 
			
		||||
# Sends commands to get images for the manual.
 | 
			
		||||
# Images for before and after for most commands
 | 
			
		||||
 | 
			
		||||
# Make sure Audacity is running first and that mod-script-pipe is enabled
 | 
			
		||||
# before running this script.
 | 
			
		||||
 | 
			
		||||
#load and run the common core.
 | 
			
		||||
exec( open("docimages_core.py" ).read() )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Commands = ["Cut", "Split", "SplitCut",
 | 
			
		||||
            "Silence", "Trim",
 | 
			
		||||
            "SplitNew", "Duplicate",
 | 
			
		||||
            "ZoomIn", "ZoomOut", "ZoomNormal", "ZoomSel", "FitInWindow", "FitV"
 | 
			
		||||
            ]
 | 
			
		||||
 | 
			
		||||
# "Delete", "Copy", - look same as cut
 | 
			
		||||
# "SplitDelete" - same as splitcut
 | 
			
		||||
 | 
			
		||||
ToDo = ["Paste", "Join", "DisJoin"]
 | 
			
		||||
 | 
			
		||||
def starterTrack():
 | 
			
		||||
    loadMonoTracks(1)
 | 
			
		||||
    do( 'Select: First=0 Last=0 Start=10 End=130')    
 | 
			
		||||
    do( 'ZoomSel' )
 | 
			
		||||
    do( 'Select: Start=55 End=70')
 | 
			
		||||
 | 
			
		||||
def imageAfters():
 | 
			
		||||
    starterTrack()
 | 
			
		||||
    capture( 'BeforeEffect.png', 'First_Track' )
 | 
			
		||||
    for name in Commands :
 | 
			
		||||
        starterTrack()
 | 
			
		||||
        do( 'SetTrack: Name="'+name+'"')
 | 
			
		||||
        do( name )
 | 
			
		||||
        capture( 'After' + name + '.png' , 'All_Tracks_Plus' )
 | 
			
		||||
    
 | 
			
		||||
imageAfters()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user