<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">This is very cool! <span style="border-bottom: 1px dashed rgb(0, 102, 204); cursor: pointer;" class="yshortcuts" id="lw_1216131265_0">Blender</span>
on a server can act like a graphical display station, being fed
real-time data from clients. I managed a Plant-floor Montoring System
many years ago, and with this patch, I can see Blender being used to
"see" what is going on there in the real-world as clients report their
status through python commands to manipulate their object, changing
color (green to red) as alerts are raised, pulsing in size perhaps when
workloads are exceeded, and so on. Thank you! I can also see this useful for real-time financial/metric reporting, where you have a network of Blenders sharing data... Keep up the good work! Hope this makes it into 2.47.<br><div>&nbsp;----------------<br></div><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;">----- Original Message ----<br>From: Dietrich Bollmann &lt;diresu@web.de&gt;<br>To: bf-blender developers &lt;bf-committers@blender.org&gt;<br>Sent: Sunday, July 13, 2008 11:43:58 PM<br>Subject: [Bf-committers] Command Port Patch, Version 2, Blender 2.46, revision 15538<br><br>
Hi, <br><br>I finally found the time to refactor the command port patch:<br><br>&nbsp; The Blender Command Port patch makes it possible to start Blender in <br>&nbsp; Python server mode. Clients can connect and send Python commands via<br>&nbsp; the command port to the server. <br><br>&nbsp; &nbsp; &nbsp; * The Command Port allows to edit objects simultaneously using the<br>&nbsp; &nbsp; &nbsp; &nbsp; Blender GUI and one or more clients connected to Blender via the<br>&nbsp; &nbsp; &nbsp; &nbsp; command port. <br>&nbsp; &nbsp; &nbsp; * The patch also includes blash, a Blender Python shell client. <br>&nbsp; &nbsp; &nbsp; * blash can be used with the emacs python mode - the result is a<br>&nbsp; &nbsp; &nbsp; &nbsp; formidable Blender Python development environment. <br>&nbsp; &nbsp; &nbsp; * Clients can be written in any language: lisp, Python, Perl, C, C<br>&nbsp; &nbsp; &nbsp; &nbsp; ++, Java etc. <br>&nbsp; &nbsp; &nbsp; * The patch was only tested on
 Debian sid until now but should run<br>&nbsp; &nbsp; &nbsp; &nbsp; on any platform after a little customisation. <br><br>Please refer to the corresponding thread on the Blender patch tracker<br><a href="https://projects.blender.org/tracker/index.php?func=detail&amp;aid=6887&amp;group_id=9&amp;atid=127" target="_blank">https://projects.blender.org/tracker/index.php?func=detail&amp;aid=6887&amp;group_id=9&amp;atid=127</a><br>and the command port "home" page at<br><a href="http://formgames.org/blender/command-port" target="_blank">http://formgames.org/blender/command-port</a><br><br>Thanks, Dietrich<br><br><br>--- from the patch tracker ---<br><br>Hi,<br><br>Here comes a new version of the command port patch.<br><br>I adapted the patch to the current state of the blender repository<br>(Blender 2.46, revision 15538) and, following the advice of Stephen<br>Swaney "It is easier to wade thru patches if they deal with a single <br>topic." (Stephen, 2007/08/17),
 "stripped [it] down to a single feature."<br>(Stephen, 2007/12/09).<br><br>Hope it gets accepted this time :)<br><br>Cheers, Dietrich<br><br><br>Example - a simple pyramid<br><br>&nbsp; The following example shows how the command port can be used<br>&nbsp; to model a simple pyramid:<br><br>&nbsp; - start the Blender server in some xterm<br><br>&nbsp; &nbsp; &nbsp; $ blender -w -p 10 10 800 600 --command-port 6789 &amp;<br><br>&nbsp; &nbsp; and erase the default cube<br><br>&nbsp; - start blash in another xterm<br><br>&nbsp; &nbsp; &nbsp; $ blash --port 6789<br>&nbsp; &nbsp; &nbsp; This is Blash - the GNU BLender-Again SHell :)<br>&nbsp; &nbsp; &nbsp; Connection to Blender Server established.&nbsp;  (IP address:<br>127.0.0.1, port: 6789)<br><br>&nbsp; - enter blender python commands<br><br>&nbsp; &nbsp; &nbsp; from Blender import *<br><br>&nbsp; &nbsp; &nbsp; vertexes = [[1, 1, 0], [-1, 1, 0], [-1, -1, 0], [1, -1,<br>0], [0, 0, 1.27]]<br>&nbsp; &nbsp;
 &nbsp; faces&nbsp; &nbsp; = [[3, 2, 1, 0], [0, 1, 4], [1, 2, 4], [2, 3,<br>4], [3, 0, 4]]<br><br>&nbsp; &nbsp; &nbsp; mesh = Mesh.New('mesh')<br>&nbsp; &nbsp; &nbsp; mesh.verts.extend(vertexes)<br>&nbsp; &nbsp; &nbsp; mesh.faces.extend(faces)<br><br>&nbsp; &nbsp; &nbsp; scene&nbsp; = Scene.GetCurrent()<br>&nbsp; &nbsp; &nbsp; object = scene.objects.new(mesh, 'object')<br>&nbsp; &nbsp; &nbsp; Redraw()<br><br>&nbsp; &nbsp; &nbsp; bye<br><br><br>Installation<br><br>&nbsp; - make a directory to build Blender<br><br>&nbsp; &nbsp; &nbsp; BCP=$HOME/bcp<br>&nbsp; &nbsp; &nbsp; mkdir -p $BCP<br>&nbsp; &nbsp; &nbsp; cd $BCP<br><br>&nbsp; - download the sources of blender 2.46 revision 15538<br><br>&nbsp; &nbsp; &nbsp; svn checkout <a href="https://svn.blender.org/svnroot/bf-blender/tru" target="_blank">https://svn.blender.org/svnroot/bf-blender/tru</a><br>nk/blender@15538<br><br>&nbsp; - download blender command port patch<br><br>&nbsp; &nbsp; &nbsp; wget <a
 href="http://formgames.org/blender/command-port/patches/blen" target="_blank">http://formgames.org/blender/command-port/patches/blen</a><br>der-command-port-patch.2008-07-12.2.46.r15538.txt<br><br>&nbsp; - patch the sources<br><br>&nbsp; &nbsp; &nbsp; cd blender<br>&nbsp; &nbsp; &nbsp; patch -p0 &lt; ../blender-command-port-patch.2008-07-12.2.4<br>6.r15538.txt<br><br>&nbsp; - build blash and blender<br><br>&nbsp; &nbsp; &nbsp; scons WITH_COMMAND_PORT=true blash<br><br>&nbsp; - the (linux) binaries<br><br>&nbsp; &nbsp; &nbsp; $BCP/install/linux2/blender<br>&nbsp; &nbsp; &nbsp; $BCP/install/linux2/blash<br><br>Note: If you want to try the patch with a newer state of the blender<br>sources you might update your copy with svn update and rebuild. If you<br>are lucky the patch still works...<br><br>For more information see the blender command port page<br>at <a href="http://formgames.org/blender/command-port/"
 target="_blank">http://formgames.org/blender/command-port/</a><br><br>_______________________________________________<br>Bf-committers mailing list<br><a ymailto="mailto:Bf-committers@blender.org" href="mailto:Bf-committers@blender.org">Bf-committers@blender.org</a><br><a href="http://lists.blender.org/mailman/listinfo/bf-committers" target="_blank">http://lists.blender.org/mailman/listinfo/bf-committers</a><br></div></div></div></div><br>

      </body></html>