[Bf-python] Text buffers updating

Willian Padovani Germano wgermano at ig.com.br
Tue May 3 19:47:43 CEST 2005


Carlos López wrote:

> Run the above script again, the new variable is not imported: the 
> buffer isn't anyway updated.
> Any idea?

Hi Carlos,

As Stephen said, you have to force module reloading, this is an 
alternative way:
(copied from an old email: 
http://projects.blender.org/pipermail/bf-python/2003-July/000355.html):

------------
#if you import a module that is a Blender Text, like:

import mymodule

#end the script with this:

import sys
del (sys.modules['mymodule'])

------------
same for each module you import this way, of course.


Ah, we really need a bpython FAQ, it's high on our priorities.

-- 
Willian




More information about the Bf-python mailing list