Skip to content

Instantly share code, notes, and snippets.

@der-On
Last active December 16, 2015 18:49
Show Gist options
  • Save der-On/5480130 to your computer and use it in GitHub Desktop.
Save der-On/5480130 to your computer and use it in GitHub Desktop.
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