Last active
December 16, 2015 18:49
-
-
Save der-On/5480130 to your computer and use it in GitHub Desktop.
XPlane2Blender 3.20 manipulator type fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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