vMix Forums
	 » 
	General
	 » 
	Feature Requests
	 » 
	we need a simpler way to assign preview/active input to a dynamic input
	 
	
        
            
            
    
        
	Rank: Newbie
  Groups: Registered
 Joined: 5/13/2022(UTC) Posts: 3  Location: melbourne  
	 
	
     | 
    
        
            
		      
                I might be missing something, but i'd like a cleaner way to assign the currently previewed input to one of the dynamic inputs.
  the way i currently do it is, i use a script with the following:
      dim VMix_XML as new system.xml.xmldocument     VMix_XML.loadxml(API.XML)     API.Function("setDynamicInput1",Value:=CInt(VMix_XML.selectSingleNode("/vmix/preview").innerText))
  whilst this *does* work, it might be useful to have some keyword we can use in the setDynamicInput1 (2,3,4) function like [preview] or [active] which does this for us.
  it is possible there is currently a way to do this that isn't documented, but i couldn't find it anywhere. i saw some reference to using the number 0 for active, but could not find one for preview - i must admit i have not tried 0 as my use case is for preview, not active.  
  
            
	  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
	
     | 
        
        
        
            
        
            
            
    
        
	Rank: Advanced Member
  Groups: Registered
 Joined: 12/27/2012(UTC) Posts: 5,451  Location: Belgium Thanks: 311 times Was thanked: 1008 time(s) in 830 post(s)
  
	 
	
     | 
    
        
            
		      
                section HTTP WEB API from the helpfiles ? Quote:Input
  Specify an input by its number starting from 1.
  0 can be used for Preview and -1 for Active.   
            
	  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
	
     | 
        
        
        
    
                           
	vMix Forums
	 » 
	General
	 » 
	Feature Requests
	 » 
	we need a simpler way to assign preview/active input to a dynamic input
	 
	
    
        Forum Jump
         
	
    
    You cannot post new topics in this forum.
	
	You cannot reply to topics in this forum.
	
	You cannot delete your posts in this forum.
	
	You cannot edit your posts in this forum.
	
	You cannot create polls in this forum.
	
	You cannot vote in polls in this forum.
	
	
    
    
        Important Information:
        The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
        
        
More Details
        Close