diff --git a/cube2sphere/blender_init.py b/cube2sphere/blender_init.py index 59c6197..8bbee9a 100644 --- a/cube2sphere/blender_init.py +++ b/cube2sphere/blender_init.py @@ -11,7 +11,7 @@ for scene in bpy.data.scenes: scene.render.resolution_percentage = 100 scene.render.use_border = False -for i, name in enumerate(['bottom', 'top', 'left', 'right', 'back', 'front']): +for i, name in enumerate(['bottom', 'top', 'right', 'left', 'back', 'front']): bpy.data.images[name].filepath = "%s" % sys.argv[-6 - i] camera = bpy.data.objects["Camera"] diff --git a/cube2sphere/cube2sphere.py b/cube2sphere/cube2sphere.py index e37015e..c78ad9c 100644 --- a/cube2sphere/cube2sphere.py +++ b/cube2sphere/cube2sphere.py @@ -14,7 +14,7 @@ def main(): _parser = argparse.ArgumentParser(prog='cube2sphere', description=''' Maps 6 cube (cubemap, skybox) faces into an equirectangular (cylindrical projection, skysphere) map. ''') - for f in ['front', 'back', 'right', 'left', 'top', 'bottom']: + for f in ['front', 'back', 'left', 'right', 'top', 'bottom']: _parser.add_argument(f, type=str, metavar='<%s>' % f, help='source %s cube face filename' % f) _parser.add_argument('-v', '--version', action='version', version=__version__) _parser.add_argument('-r', '--resolution', type=int, nargs=2, default=[1024, 512], metavar=('', ''), @@ -45,7 +45,7 @@ def main(): out = open(os.devnull, 'w') if not _args.verbose else None - faces = [_args.front, _args.back, _args.right, _args.left, _args.top, _args.bottom] + faces = [_args.front, _args.back, _args.left, _args.right, _args.top, _args.bottom] for i in range(len(faces)): face = faces[i] face = faces[i] if os.path.isabs(face) else os.path.join(os.getcwd(), face) diff --git a/cube2sphere/projector.blend b/cube2sphere/projector.blend index 073c824..b684de1 100644 Binary files a/cube2sphere/projector.blend and b/cube2sphere/projector.blend differ