<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.1">
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#ffffff">
Hi Michael,<BR>
<BR>
We have the exact same request for our content-pipeline. Currently we do all the baking by hand, which is tiresome - thus leading to incomplete results being accepted in the final game. I posted a question about this on the forums:<BR>
<BR>
<A HREF="http://www.blender.org/forum/viewtopic.php?t=12603">http://www.blender.org/forum/viewtopic.php?t=12603</A><BR>
<BR>
But there has been no reply. I also added this as a feature request to the "what are you missing in the gamedev toolchain"-question on the apricot game project, but it does not seem to be included in any todo-lists or anything.<BR>
<BR>
<A HREF="http://apricot.blender.org/?p=37">http://apricot.blender.org/?p=37</A><BR>
<BR>
I have not had my hands real dirty with actual blender-coding (I only write python plug-ins), so I don't think I can implement this fast enough for it to make sense in our production. But i really am looking forward to this feature being added as this will enable the writing of some real nice model-exporting scripts.<BR>
<BR>
./Emanuel<BR>
<BR>
<BR>
On Sat, 2008-02-02 at 10:59 +0000, Michael Williamson wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    I'm currently working on a game project for Sony and am trying to use blender for as much of the pipeline as I can.<BR>
    I've written some scripts to automate as much of the pipeline as I can but am stumbling on automatically baking lightmaps<BR>
    <BR>
    I'd really like to be able to do this. Theres a windows build on graphicall<BR>
     that has been modified to do this, but I'm wondering if the functionality could be added to the svn version <BR>
    (I'm generally using linux 64bit)<BR>
    <BR>
    <A HREF="http://www.graphicall.org/builds/builds/showbuild.php?action=show&id=555">http://www.graphicall.org/builds/builds/showbuild.php?action=show&amp;id=555</A><BR>
    <BR>
    <A HREF="http://blenderartists.org/forum/showthread.php?t=92364">http://blenderartists.org/forum/showthread.php?t=92364</A><BR>
    <BR>
    <BR>
    <FONT COLOR="#005f8c">the author had the following notes for usage:</FONT><BR>
    <FONT COLOR="#005f8c">-Add a py function to call render Baking of the selected objects and is use like this.</FONT><BR>
    <BR>
    <BR>
    <BLOCKQUOTE>
        <FONT SIZE="2"><FONT COLOR="#005f8c">scn = Scene.GetCurrent() </FONT></FONT><BR>
        <FONT SIZE="2"><FONT COLOR="#005f8c">context = scn.getRenderingContext() </FONT></FONT><BR>
        <FONT SIZE="2"><FONT COLOR="#005f8c">context.renderBake()</FONT></FONT><BR>
    </BLOCKQUOTE>
    <BR>
    That's nice and simple! This functionality would be a big help.<BR>
    I tried to contact the original author to get a patch both in his thread and through private message and have had no response<BR>
    Could someone add this functionality to blender python?
<PRE>
<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">Bf-python mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:Bf-python@blender.org">Bf-python@blender.org</A></FONT>
<FONT COLOR="#000000"><A HREF="http://lists.blender.org/mailman/listinfo/bf-python">http://lists.blender.org/mailman/listinfo/bf-python</A></FONT>

</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>