Animation Node Redirector

by DangerousWhenWet

1

Animation Node Redirector

Problem: Sometimes when you edit the scene tree of a scene that has an AnimationPlayer wired up to it, the AnimationPlayer fails to resolve nodes in the scene whose NodePaths have changed and as a result can no longer play animations.

Solution: Use a @tool script to edit the NodePaths referenced by the AnimationPlayer so they can be resolved again. This addon provides a basic UI to simplify the process.

https://github.com/user-attachments/assets/20eb002a-dd70-4271-b85b-ff4648fc7c6c

Installation

Usage

  • Enable the plugin.
  • Select an AnimationPlayer in the scene tree in the Scene dock — a button is revealed on the viewport toolbar [Redirect Animation Node(s)].
  • Click the button — a popup window appears listing all of the nodes referenced by the AnimationPlayer in a table.
  • Edit the New Node Path field until all nodes can be resolved again.
  • [Accept]
  • Save your scene.

Limitations

  • Tested only in v4.4.dev7.official [46c8f8c5c] (but I can't think of a reason for it not to work in 4.x)
  • The addon currently only functions in the Spatial/3D editor viewport. A small update is planned to dynamically support 3D or 2D viewports. But, in the meantime, enabling 2D editor functionality should be a fairly straightforward modification (I haven't tested this):
    • Edit animplayer-redirector.gd
      • Edit func _add_button():
        • EditorPlugin.CONTAINER_SPATIAL_EDITOR_MENUEditorPlugin.CONTAINER_CANVAS_EDITOR_MENU
      • Edit func _remove_button():
        • EditorPlugin.CONTAINER_SPATIAL_EDITOR_MENUEditorPlugin.CONTAINER_CANVAS_EDITOR_MENU

Version

1.0.0

Engine

4.3

Category

Tools

Download

Version1.0.0
Download Now

Support

If you need help or have questions about this plugin, please contact the author.

Contact Author