ok, i have updated mayaascii.py and simplecpp.py...

now i get this error:

  File "C:\Python24\Lib\site-packages\cgkit\cmds.py", line 928, in load
    imp.importFile(os.path.basename(filename), **options)
  File "C:\Python24\Lib\site-packages\cgkit\maimport.py", line 81, in importFile
    self.read(f)
  File "C:\Python24\lib\site-packages\cgkit\mayaascii.py", line 1069, in read
    self.end ()
  File "C:\Python24\Lib\site-packages\cgkit\maimport.py", line 104, in end
    handler(n, name, parent)
  File "C:\Python24\Lib\site-packages\cgkit\maimport.py", line 365, in onNodeMesh
    verts = node.getAttrValue("vrts", "vt", "float3", None, [])
  File "C:\Python24\lib\site-packages\cgkit\mayaascii.py", line 763, in getAttrValue
    self._executeAttrs(sname, type, n)
  File "C:\Python24\lib\site-packages\cgkit\mayaascii.py", line 848, in _executeAttrs
    exec cmd
  File "<string>", line 1
    self".vt[0:7]" = v


On 4/19/07, Matthias Baas <matthias.baas@gmail.com> wrote:
horace wrote:
> when i try to load an maya ascii file i get the following error message:
>
>   File "C:\Python24\Lib\site-packages\cgkit\cmds.py", line 928, in load
>     imp.importFile(os.path.basename (filename), **options)
>   File "C:\Python24\Lib\site-packages\cgkit\maimport.py", line 81, in
> importFile
>     self.read(f)
>   File "C:\Python24\Lib\site-packages\cgkit\mayaascii.py", line 833, in read
>     z = cpp.filterLine (s).strip()
> AttributeError: PreProcessor instance has no attribute 'filterLine'
>
> any idea what's wrong?

In alpha7 I modified the preprocessor which broke the mayaascii module
and unfortunately I only noticed that after the release. Sorry.
(meanwhile I have added a unit test for this so it should not happen again)
Can you upgrade to the latest svn version? It's fixed in there. (It
might be enough to just grab mayaascii.py and simplecpp.py and replace
those files in your installation)

- Matthias -



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
cgkit-user mailing list
cgkit-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cgkit-user