AutoPlay at startup of project

Hi,

Any way to let the project start playing automatically as soon as I launch my project?

Thanks

Hello Owson,

Sure it is.

Usually this is done with Lightact Manager (you need a Pro license for it), but you can also make it work by using Set Playback State node as shown below.

image

Hope this helps,
Mitja

1 Like

Thanks meetya.
May I know,

What is the different between ā€œon layer beginā€, ā€œrunā€ and ā€œon layer endā€?

What situation do we use these nodes?

Does the layer begin and end only last for 1 frame?

Can I use the layer begin and end to playback my separate videos of transition in and out simultaneously ?

Does lightact have some kind of the nodes similar to ue4 ā€œevent dispactcherā€, or c++ delegate? Itā€™s function mainly just let us trigger another event straight away when current event endsā€¦

Thanks.

Hello Owson,

You are right, On Layer Begin and On Layer End nodes execute only once at the beginning and end of the layer respectively. These 2 nodes execute once even if you jump to the middle of the layer as shown below:

Run node executes every frame as long as the layer is active.

As to your other question, we donā€™t have a ā€˜custom eventā€™ nodes yet, although that is in our backlog for some time now. However, there are probably lots of other ways you can achieve this behaviour. One option might be to have an Integer variable which tells you in which stage the show is in. Then youā€™d use Integer Switch Case node to switch between various node chains depending on this variable.

I hope this helps,
Mitja

1 Like

Hi Mitya,

Following up on this question-- using ā€œSet Playback Stateā€ method above, I can get my file to autoplay when I open the project. Is the a method (without LightAct Manager) to open a particular project every time LightAct is started?

Thanks,
Scott

Hi,

Yes there is. You can launch LightAct from command line with arguments where you can pass the project file as a parameter.

Have a look at this article:

Let me know how it goes.
Mitja

Revisiting this question! Launching from the command line works great.

Is there documentation of other arguments that we can use when launching LightAct from the command line?

Specifically, Iā€™m curious if it is possible to set the playhead time as an argument, but would appreciate any documentation of other arguments as well.

Thanks,
Scott

Hi,

This is not possible yet, Iā€™m afraid.

One rather ugly hack would be to use a batch file to first write some text into a textfile, then launch LightAct (perhaps after some timeout) and then LightAct can read this text from this textfile using this node:
image

After this you can pretty much do anything, I guess?

Best regards,
Mitja