| AnimationController.SetTrackEnable Method | Language: | 
      
      
      Enables or disables a track in the animation controller.
      Definition
      
        
          
            | Visual Basic | Public Sub SetTrackEnable( _ ByVal track As Integer, _
 ByVal enable As Boolean _
 )
 | 
          
            | C# | public void  SetTrackEnable( int track,
 bool enable
 );
 | 
          
            | C++ | public: void SetTrackEnable(
 int track,
 bool enable
 );
 | 
          
            | JScript | public function SetTrackEnable( track : int,
 enable : boolean
 );
 | 
        
      
      Parameters
      
        
          
            | track | System.Int32 Track identifier.
 | 
          
            | enable | System.Boolean Set to true if the track is enabled in the controller. Set to false if the track should not be mixed.
 | 
        
      
      Remarks
      
        
          
            Exceptions
            
              | InvalidCallException | The method call is invalid. For example, a method's parameter might contain an invalid value. | 
            
              | OutOfMemoryException  | Microsoft Direct3D could not allocate sufficient memory to complete the call. | 
          
        
      
      
      Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
      
        
          Feedback? Please provide us with your comments on this topic.
			
        
        
	   		For more help, visit the DirectX Developer Center