[Bf-python] BUG PYTHON identified! Please fix it...

Willian Padovani Germano wgermano at ig.com.br
Mon May 10 19:50:43 CEST 2004


Hi Chris,

----- Original Message -----
From: "Chris McCormick" <chris at mccormick.cx>
To: <bf-python at blender.org>
Sent: Saturday, May 08, 2004 7:08 AM
Subject: Re: [Bf-python] BUG PYTHON identified! Please fix it...


> Another trap to fall into is modifying the verticies of a mesh which has
> subsurf turned on. Causes the same disappearing. You have to turn
> subsurf off, run the code, then turn it back on again.

Can't test now, but maybe adding a call to object.makeDisplayList() (since the
mesh modifications make it invalid) after mesh.update() and before a redraw
solves this.

> Incidentally is there some way of sharing data between frames in a
> script which is run on framechange?

Check the Registry module, it lets you keep data in Blender.  There's an example
of its use in the bpython reference docs that you can get at the docs section of
www.blender.org .  If you need to store too much data, though, it's better to
add a check in your script to delete the data when the last frame where it is
needed is reached.

Side note: Blender 2.33a should be released later this week with bug fixes.  Cvs
is frozen except for major bug-fixes now.

--
Willian, wgermano at ig.com.br




More information about the Bf-python mailing list