[fixed] Animating const = type error (Color0)
				
Posted: 
Monday, 07.October 2013, 20:39 
				by Skinnytorus
				I've got type errors and no animation of certain Const parameters.
Please, have a look. My comments are in the file.
			 
			
				Re: Animating const = type error (Color0)
				
Posted: 
Tuesday, 08.October 2013, 09:38 
				by ikam
				don't use .xyzw or .rgba with colors type in scripts
the correct syntax is :
color0 = [r, g, b, a];
where rgba are float values from 0.0 to 1.0.
so to animate the blue channel you can do something like that :
b:float = sin(time*16);
color0 = [0, 0, b, 0];
			 
			
				Re: Animating const = type error (Color0)
				
Posted: 
Tuesday, 08.October 2013, 09:51 
				by Skinnytorus
				Hmmm... I see, but imho it doesn't fit the general wz4 scripting convention. Why is that?
Have you checked alpha channel anim? Does it work the way you showed above?
			 
			
				Re: Animating const = type error (Color0)
				
Posted: 
Tuesday, 08.October 2013, 17:35 
				by Skinnytorus
				No.. Alpha anim is not working. 

 
			 
			
				Re: Animating const = type error (Color0)
				
Posted: 
Tuesday, 08.October 2013, 22:53 
				by ikam
				it is fixed 

the shader didn't support the alpha channel if const source was set to colors in ModMisc (now ModMtrlEnv).
 
			 
			
				Re: Animating const = type error (Color0)
				
Posted: 
Wednesday, 09.October 2013, 04:49 
				by Skinnytorus
				Many thanks. What a relief!  
