Created
January 23, 2024 13:13
-
-
Save amelkor/868f6fce82dbd40f2c4286062306035f to your computer and use it in GitHub Desktop.
Pushes down all NLA actions
This file contains hidden or 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
| import bpy | |
| for action in bpy.data.actions: | |
| # Create a new NLA track for each action | |
| bpy.context.view_layer.objects.active.animation_data_create() | |
| track = bpy.context.view_layer.objects.active.animation_data.nla_tracks.new() | |
| track.name = action.name | |
| strip = track.strips.new(action.name, int(action.frame_start), action) | |
| print('NLA pushed ' + str(strip)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment