Hello again, <br><br>I am bumping this discussion because I really would like to get a definite answer, whether or not this thing has a chance of being implemented sometime in the near future or not. Should I go ask in the main mailing list and see if I can get an answer from a lead developer? I think it is not impossible that there will be an attempt to implement this by someone, however I think it is nice to have an opinion from someone involved in the design of Blender more intimately. Nobody wants to write a lot of code that eventually will not be used. :)<br>
<br>Cheers,<br>Karl<br><br><div class="gmail_quote">On Tue, Dec 14, 2010 at 9:04 AM, Ron Wheeler <span dir="ltr"><<a href="mailto:rwheeler@artifact-software.com">rwheeler@artifact-software.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On 13/12/2010 10:37 PM, Campbell Barton wrote:<br>
> Hi Karl, I think creating logic bricks in python would be acceptable<br>
> by the BGE developers its been discussed but nobody ever wrote it.<br>
> Though if we are able to get nodal logic to replace logic bricks it<br>
> may be better to have python define new logic nodes instead.<br>
><br>
> Since this isn't in blender yet. I found using states helps split up<br>
> python controller logic unto manageable chunks.<br>
><br>
> Ron, I don't understand your statement "I was never able to find<br>
> documentation about how to build libraries of Python classes that<br>
> could be included in Blender scripts."<br>
> library is a generic term which can refer to lots of things in<br>
> blender, can you be more specific as to what you tried?<br>
><br>
<br>
</div>I wanted to create a set of Python classes grouped into packages to make<br>
them easy to organize.<br>
I could get them to compile and run outside Blender but could not seem<br>
to get the import and instance creation working.<br>
Specifically I wanted to create visual objects using my classes and then<br>
manipulate the Blender environment to create movies of these objects<br>
interacting.<br>
<br>
Never found any documentation that addressed this directly. Perhaps I<br>
just did not look using the right terminology.<br>
<br>
I would like to eventually use Eclipse to build and test the components<br>
before running them in the Blender engine.<br>
<font color="#888888"><br>
Ron<br>
</font><div><div></div><div class="h5"><br>
> On Mon, Dec 13, 2010 at 7:04 PM, Ron Wheeler<br>
> <<a href="mailto:rwheeler@artifact-software.com">rwheeler@artifact-software.com</a>>  wrote:<br>
>> I am also interested in this approach.<br>
>> I was trying build animation sequences in Python.<br>
>> I was able to get an animation working but ran into problems when I tried to<br>
>> use packages and libraries to organize my functions.<br>
>><br>
>> I was never able to find documentation about how to build libraries of<br>
>> Python classes that could be included in Blender scripts.<br>
>><br>
>> Ron<br>
>><br>
>> On 13/12/2010 11:29 AM, Karl wrote:<br>
>><br>
>> Hello!<br>
>> First and foremost, as I just joined this mailing list I have little<br>
>> knowledge if my question has been already answered in some point of time or<br>
>> not. Something in this vein was discussed here in<br>
>> 2008: <a href="http://lists.blender.org/pipermail/bf-python/2008-January/005123.html" target="_blank">http://lists.blender.org/pipermail/bf-python/2008-January/005123.html</a><br>
>> .<br>
>> I am a graduate student in computer science, currently working on a project<br>
>> that utilises Blender and Python in order to programmatically create what<br>
>> are basically Blender games. For the last two months I have studied both the<br>
>> Blender Python API and the Game Engine API, and found to my disappointment<br>
>> that while it is possible to create objects from the bottom up, there is no<br>
>> way to create new sensors, controllers or actuators. I realize that there is<br>
>> a chance I might have missed some important documentation or tutorial, so if<br>
>> this is the case, feel free to correct me.<br>
>> Now to my question: are there any plans to create functions/modules in the<br>
>> Blender Python API to allow the creation of logic bricks (i.e. sensors,<br>
>> controllers, actuators)?<br>
>>  From the discussion I referred to above, the an argument against this change<br>
>> was that there was no use for this functionality. I would argue against<br>
>> this, as with this capability it is possible to create fully working games<br>
>> by writing a Python script to be interpreted by Blender. Furthermore, if<br>
>> what I understand about the Blender Python API is correct, then it should<br>
>> also easily be possible to create a scene using Blender and then<br>
>> programmatically add the necessary logic bricks with a Python script. This<br>
>> does away with the connect-the-dots approach that - while clever - makes it<br>
>> difficult to do more complex programming.<br>
>> Again, I am sorry if this topic has been covered somewhere: while the<br>
>> internet is full of Blender tutorials, they have mostly to do with the<br>
>> artistic aspect and it seems to be difficult to find information about<br>
>> topics such as this.<br>
>> All the best,<br>
>> Karl Potisepp<br>
>><br>
>> _______________________________________________<br>
>> Bf-python mailing list<br>
>> <a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
>> <a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Bf-python mailing list<br>
>> <a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
>> <a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
>><br>
>><br>
><br>
><br>
<br>
_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
</div></div></blockquote></div><br>