Create a gist now

Instantly share code, notes, and snippets.

@der-On /gist:5480130
Last active Dec 16, 2015

What would you like to do?
XPlane2Blender 3.20 manipulator type fix
'''
This script fixes manipulator types in blends that have been created with older versions of XPlane2Blender.
Usage: Select the objects with wrongly assigned manipulator types and then run this script in Blender's text-editor.
'''
import bpy
for object in bpy.context.selected_objects:
if object.xplane.manip.enabled:
if object.xplane.manip.type == 'delta':
object.xplane.manip.type = 'toggle'
if object.xplane.manip.type == 'wrap':
object.xplane.manip.type = 'delta'
if object.xplane.manip.type == 'noop':
object.xplane.manip.type = 'toggle'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment