From b847fba4910dadf0337ec7f35cf78aa8c1f5aa0b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 25 Nov 2011 03:42:10 +0000 Subject: minor pep8 edits --- io_curve_svg/import_svg.py | 6 +++--- io_scene_3ds/export_3ds.py | 12 ++++++------ io_scene_fbx/export_fbx.py | 4 ++-- io_scene_x3d/import_x3d.py | 6 +++--- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py index 56ca68a6..6904e8bc 100644 --- a/io_curve_svg/import_svg.py +++ b/io_curve_svg/import_svg.py @@ -960,9 +960,9 @@ class SVGGeometry: if hasattr(node, 'getAttribute'): defs = context['defines'] - id = node.getAttribute('id') - if id and defs.get('#' + id) is None: - defs['#' + id] = self + attr_id = node.getAttribute('id') + if attr_id and defs.get('#' + attr_id) is None: + defs['#' + attr_id] = self className = node.getAttribute('class') if className and defs.get(className) is None: diff --git a/io_scene_3ds/export_3ds.py b/io_scene_3ds/export_3ds.py index c3a7d51c..b71381f2 100644 --- a/io_scene_3ds/export_3ds.py +++ b/io_scene_3ds/export_3ds.py @@ -352,8 +352,8 @@ class _3ds_chunk(object): ''' __slots__ = "ID", "size", "variables", "subchunks" - def __init__(self, id=0): - self.ID = _3ds_ushort(id) + def __init__(self, chunk_id=0): + self.ID = _3ds_ushort(chunk_id) self.size = _3ds_uint(0) self.variables = [] self.subchunks = [] @@ -439,11 +439,11 @@ def get_material_images(material): # return images -def make_material_subchunk(id, color): +def make_material_subchunk(chunk_id, color): '''Make a material subchunk. Used for color subchunks, such as diffuse color or ambient color subchunks.''' - mat_sub = _3ds_chunk(id) + mat_sub = _3ds_chunk(chunk_id) col1 = _3ds_chunk(RGB1) col1.add_variable("color1", _3ds_rgb_color(color)) mat_sub.add_subchunk(col1) @@ -454,10 +454,10 @@ def make_material_subchunk(id, color): return mat_sub -def make_material_texture_chunk(id, images): +def make_material_texture_chunk(chunk_id, images): """Make Material Map texture chunk """ - mat_sub = _3ds_chunk(id) + mat_sub = _3ds_chunk(chunk_id) def add_image(image): import bpy diff --git a/io_scene_fbx/export_fbx.py b/io_scene_fbx/export_fbx.py index 89bc275b..e7c61f18 100644 --- a/io_scene_fbx/export_fbx.py +++ b/io_scene_fbx/export_fbx.py @@ -879,7 +879,7 @@ def save_single(operator, scene, filepath="", '\n\t\t\tProperty: "UseMotionBlur", "bool", "",0' '\n\t\t\tProperty: "UseRealTimeMotionBlur", "bool", "",1' '\n\t\t\tProperty: "ResolutionMode", "enum", "",0' - '\n\t\t\tProperty: "ApertureMode", "enum", "",3' # horizontal - Houdini compatible + '\n\t\t\tProperty: "ApertureMode", "enum", "",3' # horizontal - Houdini compatible '\n\t\t\tProperty: "GateFit", "enum", "",2' '\n\t\t\tProperty: "CameraFormat", "enum", "",0' ) @@ -908,7 +908,7 @@ def save_single(operator, scene, filepath="", fw('\n\t\t\tProperty: "NearPlane", "double", "",%.6f' % (data.clip_start * global_scale)) fw('\n\t\t\tProperty: "FarPlane", "double", "",%.6f' % (data.clip_end * global_scale)) - + fw('\n\t\t\tProperty: "FilmWidth", "double", "",%.6f' % filmwidth) fw('\n\t\t\tProperty: "FilmHeight", "double", "",%.6f' % filmheight) fw('\n\t\t\tProperty: "FilmAspectRatio", "double", "",%.6f' % filmaspect) diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py index 15ee3a4b..c3ecbeec 100644 --- a/io_scene_x3d/import_x3d.py +++ b/io_scene_x3d/import_x3d.py @@ -2463,11 +2463,11 @@ def importRoute(node, ancestry): routeIpoDict = node.getRouteIpoDict() - def getIpo(id): + def getIpo(act_id): try: - action = routeIpoDict[id] + action = routeIpoDict[act_id] except: - action = routeIpoDict[id] = bpy.data.actions.new('web3d_ipo') + action = routeIpoDict[act_id] = bpy.data.actions.new('web3d_ipo') return action # for getting definitions -- cgit v1.2.3