[Bf-python] Making IK flag writable in the Bone class

Gilbert, Joseph jgilbert at tigr.org
Tue Oct 26 15:58:08 CEST 2004


Blender Python has it's own warnings that are wrappers for python
standard warnings. They will print the warning stream to the console
window in windows or the terminal on linux (if you opened blender
through a linux terminal). The warning is usually warning : description
type string.

-----Original Message-----
From: bf-python-bounces at projects.blender.org
[mailto:bf-python-bounces at projects.blender.org] On Behalf Of Toni
Alatalo
Sent: Monday, October 25, 2004 8:37 PM
To: Blender Foundation Python list
Subject: Re: [Bf-python] Making IK flag writable in the Bone class

On Mon, 25 Oct 2004, Jonas Petersen wrote:

argh should have read all of the thread before replying, *doh*

> If a bone has no parent a warning is sent like this:
>   PyErr_Warn( PyExc_Warning, "bone has no parent!" );

how is this received on the Python side, as a Exception: Warning
or?

> I have added a deprecation warning to hasIK():

nice

> Here is a basic test python script:

as you added the exception handling as well,
the test case could test that part too, i.e.
try the operation for some invalid object
(i.e. on a bone without a parent, right?)
and catch the exception as expected
-- and if the API does not raise the exception
then raise some serious error in the test.

~Toni

_______________________________________________
Bf-python mailing list
Bf-python at projects.blender.org
http://projects.blender.org/mailman/listinfo/bf-python



More information about the Bf-python mailing list