Wait for Xpresso Action

On 11/12/2017 at 09:59, xxxxxxxx wrote:

in a script i am currently writing, i insert objects into a hierarchy that is changed by an Xpresso Node each time an element is inserted. Unluckily the modifaction of the Xpresso happens after my script, or better said my dialog window, is closed.

Is there a way to wait for the Xpresso node action to take place, or invoke it in some way?

Thanks in advance!

On 12/12/2017 at 02:50, xxxxxxxx wrote:


you can't wait in a script for scene execution (you'd wait infinitely as the script is blocking the main thread), but you can trigger scene execution from within a script using ExecutePasses().
In this thread Yannick demonstrates how this is done.

On 12/12/2017 at 03:12, xxxxxxxx wrote:

Thanks! This is exactly was i was looking for!