Add support for group particles (patch by Atom)
authorVlad "SATtva" Miller <sattva@vladmiller.info>
Thu May 27 12:56:50 2010 +0700 (2010-05-27)
changeset 557bc9a952acb96
parent 555 0c9e4ec6569f
child 558 4b34ce18a6f9
Add support for group particles (patch by Atom)
LuxBlend_0.1.py
     1.1 --- a/LuxBlend_0.1.py	Wed May 26 23:41:08 2010 +0700
     1.2 +++ b/LuxBlend_0.1.py	Thu May 27 12:56:50 2010 +0700
     1.3 @@ -380,6 +380,16 @@
     1.4                      if not psys.getName() in self.hair['obj'][obj]: self.hair['obj'][obj].append(psys.getName())
     1.5                      if not psys.renderEmitter:
     1.6                          export_emitter_mats = True
     1.7 +                elif psys.drawAs == Particle.DRAWAS['GROUP']:
     1.8 +                    grpObjs =  obj.DupObjects
     1.9 +                    grpObjName = obj.name
    1.10 +                    for i in grpObjs:
    1.11 +                        o = i[0]
    1.12 +                        m = i[1]
    1.13 +                        # Prefix the name of all particle objects with "luxGroupParticle".
    1.14 +                        self.analyseObject(o, m, "%s.%s"%("luxGroupParticle", grpObjName), False, True)
    1.15 +                else:
    1.16 +                    print "Unknown particle type for particle system [" + obj.name + "]."
    1.17              
    1.18              if (obj.enableDupFrames and isOriginal):
    1.19                  for o, m in obj.DupObjects: