[Bf-funboard] Python scripts load like plug-ins
Nathan Allworth
bf-funboard@blender.org
Wed, 18 Jun 2003 20:13:36 -0700
This is a multi-part message in MIME format.
------=_NextPart_000_0000_01C335D6.2700E770
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I was thinking this afternoon about implementing an easier way to start
python scripts.
=20
It would function more as a plug-in interface rather than a script via =
the
script/text window.
=20
Here's an image to give you the gist of what this would look like/do:
http://reblended.com/www/dittohead/images/blenderPLUGS.png
=20
When you hit the add script button a file loader would appear, the user
selects a python script(s), then hits the load button. After this the =
user
can then hit "save db" this allows the user to save all his scripts to a
.blend file with just python scripts packed in it. Or the user can hit =
the
"pack" button to pack the selected scripts to the file he/she is using. =
That
way the user can open a script library/database of his choosing. One can
easily put a set of scripts that do tasks that belong to a certain =
category,
like modeling, export, animation, etc.
=20
The file format already exists to do this, and blender writes to it
natively.=20
=20
Once a user is happy with his script selection he can then hit the =
"start
script" button. This will start the script and give any output in the =
small
status box (this will also be echoed in the console/terminal/command =
line
like it always is). If the user wants to stop a script when it is idle, =
or
wants to stop a script that doesn't have an "exit" button the user can =
hit
the stop button. Or hit escape if the mouse is under the "script/plugs"
buttons.
=20
Of course the button will reside on the end of the current buttons, and =
not
take over the script buttons which already exists.
=20
I'm not sure what the feasibility of this idea is, or even if it's =
useful.
=20
-Nathan Allworth, //-dittohead-//
=20
------=_NextPart_000_0000_01C335D6.2700E770
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle18
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal;
font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-footer-margin:.5in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState=3D"false" LatentStyleCount=3D"156"> =
</w:LatentStyles>
</xml><![endif]-->
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I was thinking this afternoon about implementing an =
easier
way to start python scripts.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>It would function more as a plug-in interface rather =
than a
script via the script/text window.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Here’s an image to give you the gist of what =
this
would look like/do: <a
href=3D"http://reblended.com/www/dittohead/images/blenderPLUGS.png">http:=
//reblended.com/www/dittohead/images/blenderPLUGS.png</a><o:p></o:p></spa=
n></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>When you hit the add script button a file loader =
would
appear, the user selects a python script(s), then hits the load button. =
After this
the user can then hit “save db” this allows the user to save =
all
his scripts to a .blend file with just python scripts packed in it. Or =
the user
can hit the “pack” button to pack the selected scripts to =
the file
he/she is using. That way the user can open a script library/database of =
his
choosing. One can easily put a set of scripts that do tasks that belong =
to a
certain category, like modeling, export, animation, =
etc.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The file format already exists to do this, and =
blender
writes to it natively. <o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Once a user is happy with his script selection he can =
then
hit the “start script” button. This will start the script =
and give
any output in the small status box (this will also be echoed in the
console/terminal/command line like it always is). If the user wants to =
stop a
script when it is idle, or wants to stop a script that doesn’t =
have an “exit”
button the user can hit the stop button. Or hit escape if the mouse is =
under
the “script/plugs” buttons.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Of course the button will reside on the end of the =
current
buttons, and not take over the script buttons which already =
exists.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I’m not sure what the feasibility of this idea =
is, or
even if it’s useful.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>-Nathan Allworth, =
//-dittohead-//</span></font><o:p></o:p></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
</div>
</body>
</html>
------=_NextPart_000_0000_01C335D6.2700E770--