To call draw funct from ext module

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Manuel
Posts: 75
Joined: Wed Oct 16, 2002 12:48 am
Location: Italy
Contact:

To call draw funct from ext module

Postby Manuel » Fri May 16, 2003 12:27 am

I've two modules:
1) the main.py, with the draw and register functions.
2) evaluator.py, a module with various functions.

From main.py, I import and use evaluator module, it's OK.

But...if I want call the draw function in a loop internal to evaluator?

I must import the main.py in the evaluator.py like this:

Code: Select all

import main
...
...
for foo in foo1:
   print foo; main.draw


or what??

Thanks,

Manuel

Return to “Python”

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests