Re: error importing plugin: free_layout.py # needs to be early

2011-09-05 Thread IaMaPlAyEr
On Sun, Sep 4, 2011 at 11:38 PM, Edward K. Ream wrote: > On Sun, Sep 4, 2011 at 10:21 AM, Edward K. Ream > wrote: > > > Oops. Rev 4448 fixes this distribution blunder. Actually, though, > > the parser for @enabled-plugins should ignore Python comments. I'll > > do this today. > > Done at rev

Re: Blender interface & scripting

2011-09-05 Thread Edward K. Ream
On Mon, Sep 5, 2011 at 11:07 AM, Terry Brown wrote: > But autocompletion in Leo would sure be nice. It is becoming clear that absolutely everything is possible. Indeed, the bulk of blender is python code: the C code merely provides "services". I am busy studying the python code in the blender/

Re: ctags?

2011-09-05 Thread Edward K. Ream
On Mon, Sep 5, 2011 at 9:43 AM, Kent Tenney wrote: > What is the status of ctags integration? Iirc, they are part of the QCompleter code. > I think I had problems the last time I tried configuring and using, > I'll revisit it if it's considered working. > > Where would I find the most concise an

Re: @url to other LEO file and "qttabs" GUI

2011-09-05 Thread Stefan Fruehwirth
On 5 Sep., 18:47, Stefan Fruehwirth wrote: > I used the 4.9 final ZIP package. Just tried it with trunk: it seems > to work. From now on I will test everything with the bzr trunk ;) Noticed another strange thing though: When Ctrl-clicking the statement: "@url file:///path/to/file.leo#Section" in

Re: Blender interface & scripting

2011-09-05 Thread Edward K. Ream
On Mon, Sep 5, 2011 at 11:55 AM, Edward K. Ream wrote: > I'm also playing around with various ways of initing blender on > startup.  The -P option works.  But apparently blender/Lib/site.py is > *not* executed on startup, so neither is sitecustomize.py. Curiouser and curiouser: -P site.py fails

Re: Blender interface & scripting

2011-09-05 Thread Edward K. Ream
On Mon, Sep 5, 2011 at 10:13 AM, Terry Brown wrote: > ... in terms of integration of Leo and Blender I feel I'd be 95% there with > "import mycode; reload(mycode)" in the Blender Python console, with > up-arrow, Enter to execute :-} I understand this remark now. One could develop in Leo, having

Re: Blender interface & scripting

2011-09-05 Thread Edward K. Ream
On Mon, Sep 5, 2011 at 11:07 AM, Terry Brown wrote: > Here's my Leo/Blender integration script :-) Yes. There are almost too many ways got get the job done. Another way would simply be to have Leo write files to the blender scripts folder, or the addons or modules subfolders. > Basically a for

Re: @url to other LEO file and "qttabs" GUI

2011-09-05 Thread Stefan Fruehwirth
On 5 Sep., 18:25, Terry Brown wrote: > Stefan Fruehwirth wrote: > > When I double click on a node with the headline "@url > > file:///path/to/file.leo" > > LEO opens the file in both the qt and qttabs GUI. When the file is > > already open and I click on the node again, the qttabs GUI doesn't >

Re: @url to other LEO file and "qttabs" GUI

2011-09-05 Thread Terry Brown
On Mon, 5 Sep 2011 08:41:44 -0700 (PDT) Stefan Fruehwirth wrote: > When I double click on a node with the headline "@url > file:///path/to/file.leo" > LEO opens the file in both the qt and qttabs GUI. When the file is > already open and I click on the node again, the qttabs GUI doesn't > show th

Re: Blender interface & scripting

2011-09-05 Thread Terry Brown
Here's my Leo/Blender integration script :-) import sys import imp sys.path.append('/home/tbrown/Desktop/Blender/mnbba') file, pathname, description = imp.find_module('mnbba02') imp.load_module('mnbba02', file, pathname, description) Basically a forced import of the module bei

Re: Blender interface & scripting

2011-09-05 Thread Edward K. Ream
On Mon, Sep 5, 2011 at 10:15 AM, Terry Brown wrote: > Be interested to know if you get that going - seems to me Jaworski did > not do that, instead using a helper script activated from a button in > Blender to start the script under development. Rev 4450 contains the first draft of blender work.

Re: Blender interface & scripting

2011-09-05 Thread Terry Brown
So the Blender Python console redirect stdout to itself, not helpful in a long running script. Trying to unto that I got this in the console window: >>> sys.__stdout__.write('3\n') 2 ha ha ha Of course it wrote '3\n' to the terminal window from which Blender was launched. '2' is the number of

@url to other LEO file and "qttabs" GUI

2011-09-05 Thread Stefan Fruehwirth
When I double click on a node with the headline "@url file:///path/to/file.leo" LEO opens the file in both the qt and qttabs GUI. When the file is already open and I click on the node again, the qttabs GUI doesn't show the corresponding tab, whereas with the qt GUI the right window pops up. Can som

Re: Blender interface & scripting

2011-09-05 Thread Terry Brown
On Mon, 5 Sep 2011 10:06:04 -0500 "Edward K. Ream" wrote: > The first step, it seems to me, would be to create an > execute-blender-script command: it's important to get something > working quickly. This would short-circuit several chapters of the > Jaworski book :-) I'll be playing around with

Re: Blender interface & scripting

2011-09-05 Thread Terry Brown
On Mon, 5 Sep 2011 09:14:13 -0500 "Edward K. Ream" wrote: > Please keep us informed about this: integrating Blender and Leo could > be the project that awakens the world to what Leo can do. After a quick skim of the book it seems that it does two things of merit: - set up Blender API autocompl

Re: Blender interface & scripting

2011-09-05 Thread Edward K. Ream
On Mon, Sep 5, 2011 at 9:14 AM, Edward K. Ream wrote: > Please keep us informed about this: integrating Blender and Leo could > be the project that awakens the world to what Leo can do. The first step, it seems to me, would be to create an execute-blender-script command: it's important to get so

ctags?

2011-09-05 Thread Kent Tenney
What is the status of ctags integration? I think I had problems the last time I tried configuring and using, I'll revisit it if it's considered working. Where would I find the most concise and current set of instructions ? Thanks, Kent -- You received this message because you are subscribed to

Re: Blender interface & scripting

2011-09-05 Thread Edward K. Ream
On Mon, Sep 5, 2011 at 8:57 AM, Terry Brown wrote: > Ok, so after getting past the mis-interpretation that the book was > written using Eclipse :-) that's a great link, hopefully I can use its > notes on integrating Blender and Eclipse to integrate Blender and > Leo :-) That would be a great pro

Re: Blender interface & scripting

2011-09-05 Thread Terry Brown
On Sun, 4 Sep 2011 06:18:49 -0500 Kent Tenney wrote: > This seems a well written book on Python scripts for Blender using Eclipse. > http://airplanes3d.net/downloads/pydev/pydev-blender-en.pdf Ok, so after getting past the mis-interpretation that the book was written using Eclipse :-) that's a g