Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/p/y/PyPRP-HEAD/PyPRP/prp_DrawClasses.py   PyPRP(Download)
 
        # build up a weight map if neccessary, and fill it with the default value to start with
        if len(mesh.getVertGroupNames()) > 0:
            weightCount = 1 # Blender supports only one weight :)
 
        # if the object has modifiers, apply them
        if len(obj.modifiers) > 0:
            if len(mesh.getVertGroupNames()) == 0:
                obj.colbits = savedcolbits
            else:
                print "  WARNING: This object has both modifiers (" + ", ".join(m.name for m in obj.modifiers) + ") and vertex groups (" + ", ".join(mesh.getVertGroupNames()) + "),"
                print "           which is not supported by PyPRP. Ignoring the modifiers."
 

src/p/y/PyPRP-HEAD/PyPRP/prp_ObjClasses.py   PyPRP(Download)
    def export_obj(self,obj):
        mesh = obj.getData(False,True)
        # if the object has modifiers and no vertex groups (as in plDrawInterface.export_obj), apply the modifiers
        if len(obj.modifiers) > 0 and len(mesh.getVertGroupNames()) == 0:
            mesh = Mesh.New()
    def export_obj(self,obj):
        print "  HullBounds export"
        mesh = obj.getData(False,True)
        # if the object has modifiers and no vertex groups (as in plDrawInterface.export_obj), apply the modifiers
        if len(obj.modifiers) > 0 and len(mesh.getVertGroupNames()) == 0:
    def export_obj(self,obj):
        mesh = obj.getData(False,True)
        # if the object has modifiers and no vertex groups (as in plDrawInterface.export_obj), apply the modifiers
        if len(obj.modifiers) > 0 and len(mesh.getVertGroupNames()) == 0:
            mesh = Mesh.New()