[Bf-funboard] feature suggestion : Extensible scripting from buttons

Jean Montambeault bf-funboard@blender.org
Mon, 16 Jun 2003 09:30:08 -0400


Mark Constable wrote:

>Perhaps this is already kinda possible via python
>but it would be really nice to be able to create
>my own button panels with user-defined buttons that
>execute whatever I want.
>
>For instance after finishing a render of jpegs I'd
>love to be able to go to a different panel and
>simply click on "Make mpeg2" which really calls a
>simple shell script such as...
>
> #!/bin/sh
> [ ! -f ${1}0001 ] && echo "${1}0001 does not exist" && exit 1
> FRAMES=${2:-61}
> jpeg2yuv -Ip -b1 -n$FRAMES -v1 -f25 -j $1%04d | \
>  mpeg2enc -f3 -b9000 -q2 -41 -21 -V 500 -P -g3 -G12 -I0 -o $1.m2v
> [ -f $1.mp2 ] && mplex $1.mp2 $1.m2v -o $1.mpg
>
>And then another one called "Show mpeg2"...
>
> #!/bin/sh
> xine -f -l $1.mpg
>
>... etc. If this was possible (without using python) I
>would start to use Blender as my general desktop system
>with buttons called "Gimp" and "mozilla" and...
>
>--markc
>
>_______________________________________________
>Bf-funboard mailing list
>Bf-funboard@blender.org
>http://www.blender.org/mailman/listinfo/bf-funboard
>
>  
>
...If I may add.

Jean