Hey there,
As Vitor mentioned, in the release 5.6 there was a refactor of bindings to better support dynamic binding. This was essential for sequencer as it becomes a more generic tool beyond cinematics. Unfortunately, this also broke AddSpawnableFromInstance as you’ve found and then we deprecated that function in favor of the new one, but as a limitation of the new dynamic bindings we introduced the compromise to have the sequence open and focused as a requirement for that to work.
All of that said, there are initiatives to have our python APIs get better, so feedback like this is good, but may not be actioned on right away.
But this crashes almost every time if the sequencer is open. It crashes about 50% of the time when the sequencer is closed. It seems like something in the code is holding onto sequencer callbacks for events like track deletion so this call causes the sequencer to crash and bring the editor down with it.
If we can get a callstack for this, we can hopefully get a code fix/workaround so that this doesn’t happen. At the very least we can get an issue in the system to get it resolved.
This ends up calling GetSequencer which for some reasons succeeds even when the sequencer is closed. It believes sequencer is there by checking a WeakPointer and then calls Pin on it. Down it goes.
Yeah this is a case where a callstack for that would be helpful as well. More than likely we’ve run into and already addressed the issue and ideally I can get you a code snippet or fix for that issue particularly.
Anyway, I would be fine with one or the other. Sequencer must be open or sequencer cannot be open. Just make it not crash on one of those pathways so that I can get work done.
This is the feedback I’ve just fed into the team with. Any code adjustments we make should point at one or the other direction and we can address that pathway over time.
Oh, I also have popups that call close sequencer before running my code but this doesn’t work since the close call returns immediately even thought the sequencer close has not completed. So, this ends up being a bit of a race condition
Do you have an example of this?
Again, this is all good feedback, and ideally I can help you with your crashes immediately.
Dustin