Search found 39 matches

by vaniasmrkovski
Thu Mar 05, 2009 2:02 am
Forum: Python
Topic: running Unit Tests from within Blender
Replies: 6
Views: 3595

I managed unittest working in the mean time. Thanks anyway. What does Blenderproject consist of? It was an attempt to use multiple Blender files as a collective which would be associated together as one project. Back then, the Link features were much more limited. There have since been a whole lot ...
by vaniasmrkovski
Tue Mar 03, 2009 9:07 pm
Forum: Python
Topic: running Unit Tests from within Blender
Replies: 6
Views: 3595

Great! I have incorporated the basics of it in the Blender Project Management Toolkit CVS. (The project is at http://projects.blender.org/projects/blenderproject/ .) It seems that the current Python unittest module will not, without some modifications, run unit tests from within Blender (at least I...
by vaniasmrkovski
Thu Jun 02, 2005 10:46 pm
Forum: Python
Topic: Scripting and Append->Link
Replies: 1
Views: 1319

Scripting and Append->Link

I have a project with Library references in it, and I want to know from within Python what file it is pointing to. Is there a Python script command to do this? Specifically, I would like to be able to produce a manfiest of files that are required in a project, or perhaps to run a script which will s...
by vaniasmrkovski
Mon Jan 03, 2005 6:52 pm
Forum: Python
Topic: running Unit Tests from within Blender
Replies: 6
Views: 3595

Great! I have incorporated the basics of it in the Blender Project Management Toolkit CVS. (The project is at http://projects.blender.org/projects/blenderproject/ .) It seems that the current Python unittest module will not, without some modifications, run unit tests from within Blender (at least I ...
by vaniasmrkovski
Tue Dec 28, 2004 9:46 pm
Forum: Python
Topic: running Unit Tests from within Blender
Replies: 6
Views: 3595

running Unit Tests from within Blender

I won't waste space here unless there are people interested, but I wanted to mention that if anybody has a desire and has faced the same frustration I have in trying to get Python Unit Tests to run from within Blender, I finally managed to hack at the necessary scripts to make it work. I am trying t...
by vaniasmrkovski
Mon Dec 13, 2004 5:51 am
Forum: Documentation & Education
Topic: Video tutorials needed
Replies: 28
Views: 19262

Hey, folks, I gotta throw my two cents in. I've been trying to get the video tuts to work, and have failed except for audio in all cases. I'm running SuSE 9.1, and it doesn't even have codecs available for the videos I've downloaded, and does not have the libraries needed for VLC, your recommended v...
by vaniasmrkovski
Sun Dec 05, 2004 5:54 pm
Forum: Python
Topic: exporting a boolean property
Replies: 4
Views: 2223

Update for next version of Blender: FIXED

I just received word that the bug I posted about this Boolean property access has led to a fix. It was a minor problem in the getData function in accessing the wrong value. They found it, fixed it, and we should have in in 2.36.

V
by vaniasmrkovski
Wed Nov 24, 2004 2:42 am
Forum: Python
Topic: exporting a boolean property
Replies: 4
Views: 2223

Well, that wasn't so straightforward. Looks like the code tries to handle Booleans distinctively from Integers, Floats and Strings.... When I have a property called Enabled, I can safely click True or False, and it maintains its state in the Logic panel's ADD Property area. So that part is not a pro...
by vaniasmrkovski
Wed Nov 24, 2004 2:11 am
Forum: Python
Topic: exporting a boolean property
Replies: 4
Views: 2223

I am finding the same problem. I have a property which is a BOOL, and no matter what I set for it, the .getData() function always returns True. I believe it has to do with the fact that Python supports non-Boolean conversion to Boolean using the Nothin/''(empty)/0 is False, anything else is True. Se...
by vaniasmrkovski
Wed Aug 18, 2004 7:39 pm
Forum: Python
Topic: Unit Test Scripts in Python
Replies: 10
Views: 3937

Nope. I thought it was another "Duh, I should have thought of __main__ myself" kind of situation. But it truly appears Blender's Python does not want to run unittest modules.... Here are the results. import unittest class BlenderProjectTest(unittest.TestCase): def testDBConnection(self): print 'I am...
by vaniasmrkovski
Wed Aug 18, 2004 2:24 pm
Forum: Python
Topic: Unit Test Scripts in Python
Replies: 10
Views: 3937

Done. You're added as a developer. I'll very likely need you for more, but I'll wait until we have a better idea of how you want to get involved. I didn't want to presume :->. So I tried your code both from within Blender and from a shell, and wouldn't you know it, that made the difference. From the...
by vaniasmrkovski
Wed Aug 18, 2004 2:04 pm
Forum: Python
Topic: Unit Test Scripts in Python
Replies: 10
Views: 3937

Okay, now that's just odd. I tried your way, even to the point of copying and pasting your example code, and it's not working. I still get "0 tests run".

More tonight.

I'll add you to the project. As jesterKing?
by vaniasmrkovski
Wed Aug 18, 2004 1:29 pm
Forum: Python
Topic: Unit Test Scripts in Python
Replies: 10
Views: 3937

Excellent debug work, JK! The effect of removing the import really surprised me. Something so fundamental as commenting out this or that, I'm kicking myself for not thinking of it already. But then, I'm still new at Python, so my critical thinking is still in the mode of "maybe I missed something in...
by vaniasmrkovski
Wed Aug 18, 2004 1:02 pm
Forum: Python
Topic: Unit Test Scripts in Python
Replies: 10
Views: 3937

Okay, it was a good thougt. I am programming this using two machines, two OSs and different editors, and one uses tabs, one spaces, one defaults to 4 spaces, one 8. Annoying, corrected (below), and still not working..... import unittest import BlenderProject.DBConnection from BlenderProject.DBConnec...
by vaniasmrkovski
Wed Aug 18, 2004 4:18 am
Forum: Python
Topic: Unit Test Scripts in Python
Replies: 10
Views: 3937

Unit Test Scripts in Python

Hello, I am trying to figure out how to get a unit test to run in my Blender Python script. I have the following code in a folder called test, and I am following the example listed in Python In A Nutshell, but all I get is "0 tests run" and the first print (I am about to ...). I have reread the exam...