Ok, worked through all the viewer.py examples. Installed Aqsis. Now trying the render.py example. My Python debugger reports a lot of exception of the form below, until I suppress exception breaking from that raise in the debugger. Works properly. Nice :-)
I've heard that dealing with non-existant attributes by raising an exception is in some wise Pythonic, but I'm wondering if a look-before-you-leap in this case might be a good idea? I like it when scripts run without a lot of noise. Just a personal preference i guess.
AttributeError: Object "Box" has no attribute "__conform__"
Traceback (innermost last):
File "C:\Python23\Scripts\render.py", line 1, in ?
File "C:\Python23\Scripts\render.py", line 157, in ?
File "C:\Python23\Lib\site-packages\cgkit\tool.py", line 184, in run
File "C:\Python23\Scripts\render.py", line 96, in action
output_framebuffer = (self.time_end==None)
File "C:\Python23\Lib\site-packages\cgkit\cmds.py", line 631, in save
File "C:\Python23\Lib\site-packages\cgkit\ribexport.py", line 147, in exportFile
explgt = protocols.adapt(obj, ILightSource)
File "C:\Python23\Lib\site-packages\cgkit\worldobject.py", line 137, in __getattr__
raise AttributeError, 'Object "%s" has no attribute "%s"'%(self.name, name)
This shouldn't happen. Can you tell me exactly what you did so that I can reproduce the error (where and how did you invoke the render tool)? Can you also provide the versions of Python, cgkit and PyProtocols you were using?
- Matthias -
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.