[Bf-committers] Fully animated & active UI

zippy trip at spymac.com
Mon May 9 19:04:06 CEST 2005


DUDE!,, That rules.. It is the quintessential auto feedback tool  
needed.. Needs some polish of course, BUt it would look great if we had  
shaders now could really get into the tweaking of textures. AND it  
doess something I begged for forever, auto keyframe while moving!!!!!

:D Commit commit!


On May 9, 2005, at 11:12 AM, Ton Roosendaal wrote:

> Hi,
>
> While discussing TimeLine, someone mentioned to find it 'bad' that the  
> button "Play" doesn't become a 'stop' or 'pause' button. This is of  
> course logical, since currently the ALT+A option is its own loop and  
> leaves the UI not responsive.
>
> I know Blender can do this however... simply using the internal event  
> & timing  system. I've hacked together a first test, code you can find  
> below. Insert it in src/editscreen.c in the end of the function:  
> screen_dispatch_events(void)
>
> Now name the screen with an 'A' as first letter, and have fun! :)
>
> A real 'animated UI' feature will need more work though, to nicer  
> integrate with all events. You can also notice where Blender goes into  
> subloops (like transform, or buttons). Ideas for usablity have to be  
> expored, like;
>
> - Make some kind of preset menu in TimeLine menu which tells which  
> windows have to become 'animated' ?
> - Or only animate the active window? (Where mouse is in)
> - And so on...
>
> -Ton-
>
>
> 	/* screen handler? */
> 	if(G.curscreen->id.name[2]=='A') {
> 		extern double speed_to_swaptime(int speed);
> 		static double ltime=0.0;
> 		double swaptime, time;
> 		
> 		time = PIL_check_seconds_timer();
> 		
> 		swaptime= speed_to_swaptime(G.animspeed);
> 		
> 		if(swaptime < time-ltime || ltime==0.0) {
> 			ltime= time;
> 		
> 			CFRA++;
> 			if(CFRA > EFRA) CFRA= SFRA;
> 			update_for_newframe_muted();
> 			allqueue(REDRAWVIEW3D, 0);
> 		}
> 		addafterqueue(curarea->win, -1, 1);
> 	}
>
>
> ----------------------------------------------------------------------- 
> ---
> Ton Roosendaal  Blender Foundation ton at blender.org  
> http://www.blender.org
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
>



More information about the Bf-committers mailing list