[Bf-python] Text buffers updating

Carlos López klopes at unizar.es
Wed May 4 10:34:50 CEST 2005


Yaaay! it works cooly!
Thanks very much. I'm writing a real flow importer, it really works, 
stay tuned!
(It's confidential, keep the secret ;)

Klópes

Willian Padovani Germano wrote:

> 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'])
>




More information about the Bf-python mailing list