Notifications
Clear all

[Closed] Plase help me check error below script


 allObject = $*    for obj in allObject do 
 (  
   ctrl = obj.position.x_position.controller -- just as an example
	t = 0f 
	k = getKeyIndex ctrl t -- returns the index of the key at time t (if there is one)  
	de = meditMaterials[1].ambient.controller
	 l = getKeyindex de t
	 if (k>0)or (l>0) then
		(  	   
			if queryBox "WARNING: The script found animation key and it willl clear them. Are you sure you want to continue?" beep:true then 
			(  	 
				  actionMan.executeAction 0 "18"  	   
			  )    	
			exit  		
			)  	
		   else actionMan.executeAction 0 "18"  	
		exit
 )