I just imported a bunch of actions from different files into one blend, but the GLTF exporter can't locate them without them being in the NLA stash. (There used to be a plugin that would export all actions to the GLTF, but 2.8 won't add it to the addon list.)
I tried this:
import bpy ob = bpy.context.object if ob.animation_data is None: ob.animation_data_create() ad = ob.animation_data for action in bpy.data.actions: ad.action = action bpy.ops.action.stash()
And that just caused:
RuntimeError: Operator bpy.ops.action.stash.poll() failed, context is incorrect
And I haven't been able to find anything on how to fix it for this specific function.
How can I do this?