armory3d / armory

3D Engine with Blender Integration
https://armory3d.org/engine
zlib License
3.07k stars 316 forks source link

Support for NLA Sequencer Node #2742

Open tehgates opened 1 year ago

tehgates commented 1 year ago

I'd like to suggest a node that plays back all sounds and actions including action blending in the NLA Sequencer. I think this would simplify the creation of cut-scenes and short movies.

Timeline markers could also be incorporated to specify where to begin and end the NLA playback as well as be used as a trigger for other nodes.

rpaladin commented 1 year ago

To anyone who is unaware, this feature request was initially derived on the forum.

Timeline markers could also be incorporated to specify where to begin and end the NLA playback as well as be used as a trigger for other nodes.

Is the On Action Marker node not what you were looking for?

tehgates commented 1 year ago

Is the On Action Marker node not what you were looking for?

Possibly. Though I haven't been able to get it to work. The documentation is quite short and there aren't any examples as far as I can see.

Not sure if this is the way action markers work, but if I had some timekeeping dummy object that had an action that lasted the duration of the movie, then I could add markers along the action to trigger other character animations. If so then yes, it would do it!

I assume these "action markers" are the markers that can be added with 'M' in the Timeline?

rpaladin commented 1 year ago

... there aren't any examples as far as I can see.

Not sure if this is the way action markers work, but if I had some timekeeping dummy object that had an action that lasted the duration of the movie, then I could add markers along the action to trigger other character animations. If so then yes, it would do it!

I assume these "action markers" are the markers that can be added with 'M' in the Timeline?

You might consider checking the online demos. There's numerous animation examples. For instance, this one uses animation markers: https://armory3d.github.io/armory_examples_browser/#examples-animation_actions

tehgates commented 1 year ago

Thanks @rpaladin, I had a look at the animation action blend file today and tried to replicate the print "marker!" at marker in the run action. However, it seems like the marker has somehow been binded to the run action. I haven't been able to figure out how this was done - my markers seem to be for the whole timeline and therefore do not work when called by the On Action Marker node.

Perhaps this issue would be better discussed on the help forum? I can make a new topic there.

I think an NLA node would be neat though.

rpaladin commented 1 year ago

For further questions, a new forum thread would probably be better off for discussions, yes. Less notifications for Lubos as well.

However, it seems like the marker has somehow been binded to the run action. I haven't been able to figure out how this was done

I believe they're stashed actions?