X-Git-Url: https://git.ao2.it/vrm.git/blobdiff_plain/d9268e6c053da9eaddaa67883ade7a701057f264..de221ecd94607f731bb5d39c4d71447e3b545098:/vrm.py diff --git a/vrm.py b/vrm.py index 7ac4d83..15fba09 100755 --- a/vrm.py +++ b/vrm.py @@ -7,7 +7,7 @@ Tooltip: 'Vector Rendering Method script' """ __author__ = "Antonio Ospite" -__url__ = ["http://projects.blender.org/projects/vrm"] +__url__ = ["http://vrm.ao2.it"] __version__ = "0.3.beta" __bpydoc__ = """\ @@ -15,7 +15,7 @@ __bpydoc__ = """\ """ # --------------------------------------------------------------------- -# Copyright (c) 2006, 2007, 2008 Antonio Ospite +# Copyright (c) 2006, 2007, 2008, 2009 Antonio Ospite # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -61,37 +61,6 @@ __bpydoc__ = """\ # - Check memory use!! # # --------------------------------------------------------------------- -# -# Changelog: -# -# vrm-0.3.py - ... -# * Adapted to blender API 2.45 -# * First release after code restucturing. -# Now the script offers a useful set of functionalities -# and it can render animations, too. -# * Optimization in Renderer.doEdgeStyle(), build a topology cache -# so to speed up the lookup of adjacent faces of an edge. -# Thanks ideasman42. -# * The SVG output is now SVG 1.0 valid. -# Checked with: http://jiggles.w3.org/svgvalidator/ValidatorURI.html -# * Progress indicator during HSR. -# * Initial SWF output support (using ming) -# * Fixed a bug in the animation code, now the projection matrix is -# recalculated at each frame! -# * PDF output (using reportlab) -# * Fixed another problem in the animation code the current frame was off -# by one in the case of camera movement. -# * Use fps as specified in blender when VectorWriter handles animation -# * Remove the real file opening in the abstract VectorWriter -# * View frustum clipping -# * Scene clipping done using bounding box instead of object center -# * Fix camera type selection for blender>2.43 (Thanks to Thomas Lachmann) -# * Compatibility with python 2.3 -# * Process only object that are on visible layers. -# * Saving config to registry (Thanks to Thomas Lachmann for a draft -# implementation) -# -# --------------------------------------------------------------------- import Blender from Blender import Scene, Object, Mesh, NMesh, Material, Lamp, Camera, Window @@ -99,6 +68,12 @@ from Blender.Mathutils import * from math import * import sys, time +try: + set() +except NameError: + from sets import Set as set + + def uniq(alist): tmpdict = dict() return [tmpdict.setdefault(e,e) for e in alist if e not in tmpdict] @@ -159,7 +134,7 @@ class config: def loadFromRegistry(): registry = Blender.Registry.GetKey('VRM', True) if not registry: - return + return for k,v in registry.iteritems(): k_tmp = k.split('_') @@ -3016,7 +2991,7 @@ class GUI: Draw.Button("Exit", GUI.evtExitButton, 95, 210-25, 75, 25+18, "Exit!") Draw.Button("Save settings as default", GUI.evtSaveDefaultButton, 10, 210-50, 160, 18, - "Save settings as default") + "Save settings as default") # Rendering Styles glRasterPos2i(200, 310)