you could load libmono directly and use ctypes to call into it.
http://code.google.com/p/rpythonic/source/browse/examples/libmono/__init__.py



On Thu, Jun 28, 2012 at 12:53 AM, Owen Nelson <[email protected]> wrote:

> You have me a bit curious...
> I won't have a chance to test this for some time, but I'm wondering if you
> were to write your simple:
>
> """
> shell.py drops you into an embedded ipython prompt.
> """
> from IPython import embed
> embed()
>
> to a .py file (its own module), then run it as a background script via...
>
> blender -b -P shell.py
>
> I wonder if that would behave any better? If it did, you'd have the added
> advantage of not having to deal the alternate keymap blender provides with
> its interactive console (which continues to trip me up).
>
> Owen Nelson
>
>
>
>
> On Tue, Jun 26, 2012 at 4:26 AM, klo uo <[email protected]> wrote:
>
>> Hi,
>>
>> Hopefully I picked right list from many available, presented here:
>> http://lists.blender.org/mailman/listinfo/
>>
>> I'm starting to learn Blender and sure I have many misconceptions right
>> now.
>> I'm running Blender compiled on Ubuntu 12.04 with cmake with Python
>> support (WITH_PYTHON_INSTALL), so I have Python 3 system modules
>> available. Previously I compiled with WITH_PYTHON_MODULE to bpy.so
>> which I could call with Python interpreter, but it's not what I'm
>> after as there is no UI, no interaction, only option to pick
>> intermediate result seem to be rendering to image file...
>>
>> FYI, I would like to translate VTK objects to Blender, together with
>> color LUT. VTK isn't ported to Python 3 yet, but it probably will be
>> when major Linux distributions start to treat Python 3 as default
>> interpreter (as main VTK Python porter wrote). That's just to make the
>> problem harder. But other than that Blender is huge environment for
>> many interesting things, and for user interested in 3D and multimedia
>> exploration, Blender is inevitable at some point, like for me right
>> now :)
>>
>> Blender has Python console and that's great. However I'm used to
>> IPython console and headed to solution where I can interface Blender
>> with IPython console if anyhow possible.
>> I found some blog posts by Stani (author of SPE IDE) and see he tried
>> at least two times to do this, although with older Blender and older
>> IPython, which now have different APIs. Looking at what he did here
>>
>> http://pythonide.blogspot.com/2009/03/resumable-ipython-inside-blender_31.html
>> and in later try to embed IPython in Blender's text "panel" it doesn't
>> feel very convenient and it's like partial solution. I didn't try it
>> as those API call to both Blender and IPython are obsolete, although I
>> guess portable. Other than this there is no other info indexed by
>> Google
>>
>> Here is some info about IPython embeddable potential:
>>
>> http://ipython.org/ipython-doc/dev/interactive/reference.html#embedding-ipython
>> but I guess knowledge about underlying layers in Blender are needed to
>> make it work.
>>
>> With simple:
>>
>>    from IPython import embed
>>    embed()
>>
>> in Blender Python console, I get maxed CPU and pumping memory, until I
>> terminate Blender. Some other similar tries resulted in freezing
>> Blender.
>> I contacted IPython devs but they advise I ask Blender devs for
>> details, mainly info about hooking event loop
>>
>> So can someone maybe suggest how to load IPython (or potentially
>> arbitrary Python wrapper, interactively to running Blender
>> application) that is synced with the Blender event loop?
>>
>>
>> Thanks in advance
>> _______________________________________________
>> Bf-python mailing list
>> [email protected]
>> http://lists.blender.org/mailman/listinfo/bf-python
>>
>
>
> _______________________________________________
> Bf-python mailing list
> [email protected]
> http://lists.blender.org/mailman/listinfo/bf-python
>
>
_______________________________________________
Bf-python mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-python

Reply via email to