Doom3world

The world is yours! Doom 3 - Quake 4 - ET:QW - Prey - Rage
It is currently Sun May 26, 2013 12:10 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: ASE Importer
PostPosted: Sun Jul 29, 2007 11:31 pm 
Offline
is connecting to Doom3world.org

Joined: Sun Jul 29, 2007 11:13 pm
Posts: 7
hi, i've had some problems with this script. i was getting the "python script error : check console" error message as soon as i selected this script. the output from the console said this...
Quote:
File "<string>", line 485
add_EDGESPLIT = True
^
IndentationError: unindent does not match any outer indentation level
...so i opened the file and added a couple of spaces so that it matched the line above and that seemed to do the trick.

apart from that little glitch it's a fantastic script. thanks for all your work.


Top
 Profile E-mail  
 
 Post subject: Re: ASE Importer
PostPosted: Sat Jul 26, 2008 11:03 pm 
Offline
is connecting to Doom3world.org

Joined: Fri Aug 24, 2007 3:04 am
Posts: 3
with that fix from the previous post it also seems to work with recent Blender 2.46
(just a short note)
nice! thx :)


Top
 Profile E-mail  
 
 Post subject: Re: ASE Importer
PostPosted: Sat Aug 07, 2010 5:48 pm 
Offline
picked up a pistol
User avatar

Joined: Thu Oct 12, 2006 9:49 pm
Posts: 50
I'm getting an error when trying this script, I opened it with the python editor and it says this as the following error:

Code:
   # apply sharp, seam and fgon flags to edges.
   add_EDGESPLIT = False
   if IMP_FGONS or IMP_SEAMS or IMP_SMOOTHGROUPS:
      SHARP = Mesh.EdgeFlags.SHARP
      SEAM = Mesh.EdgeFlags.SEAM
      FGON = Mesh.EdgeFlags.FGON
      seam_keys = []
      if ase_me.hasUV: seam_keys = ase_me.ase_uv_channels[1].seams
      for k,ase_ed in ase_me.ase_edges.iteritems():
         if ase_ed.sharp or not ase_ed.visible or k in seam_keys:
            edi = me.findEdges(k[0],k[1])
            if edi:
               ed = me.edges[edi]
               if ase_me.hasUV and k in seam_keys and IMP_SEAMS: ed.flag |= SEAM
               if not ase_ed.visible and IMP_FGONS: ed.flag |= FGON
               if ase_ed.sharp and IMP_SMOOTHGROUPS:
                    ed.flag |= SHARP
                  add_EDGESPLIT = True <-------------------unindent does not match any outer indentation level



   # add EdgeSplit Modiefier when the mesh has sharp edges
   # autosmooth is EXPERIMENTAL! because i dont know if this is correct!
   if add_EDGESPLIT and OPT_MOD_EDGESPLIT:
      mod = ob.modifiers.append(Blender.Modifier.Types.EDGESPLIT)
      if not ase_me.autosmooth:
         mod[Blender.Modifier.Settings.EDGESPLIT_FROM_ANGLE] = 0
      else:


I've no idea how to fix this. I copied and pasted the code from the OP into IDLE and told it to Check Module.

EDIT: Okay I added some spaces to line up with the line above it, and now it doesn't error out. Time to see if it works in Blender now.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group