Launching LightAct with Arguments

LightAct can be launched with predefined command line arguments. Depending on the argument, LightAct will start in a different mode which may speed up your workflow or give you better insight on the program.

LightAct offers three types of arguments: standalone, advanced and custom arguments

Standalone arguments

To launch LightAct with a standalone argument, the correct formatting would be "C:\Program Files\Lightact\Lightact4\Lightact.exe" -argument.

CommandDescription

-log

Extensive logging. When you are in this mode, in the Log Window, you will notice extended messages for Iris cameras, down-sampling, up-sampling and so on.

-developer

Gives you an insight of developer information such as object IDs, down-sampled resolutions and more.

-most_recent

Opens your most recent project.

-clear

Clears the cache folder.

-secondary

Gives the machine a Secondary role in LightNet.

-lightnet

Sets the LightNet checkbox to ON.

Good to know: For example, to launch LightAct in the extensive logging mode, you would type "C:\Program Files\Lightact\Lightact4\Lightact.exe" -log.

Advanced arguments

To launch LightAct with advanced arguments, the correct formatting would be "C:\Program Files\Lightact\Lightact4\Lightact.exe" -argument "<advanced_arguments>".

CommandDescription

-project "<filepath>"

Lets you decide which project to open upon launch.

-window "<poz.x> <poz.y>"

Gives you the liberty to determine the position and size of the program window upon launch.

-window "<poz.x> <poz.y> <size.x> <size.y>"

Gives you the liberty to determine the position and size of the program window upon launch.

-nic "<ip> <port>"

Sets the default NIC and data port for the application. If the NIC is not valid, a default NIC is set.

Good to know: For example, to launch LightAct in nic mode, you would type "C:\Program Files\Lightact\Lightact4\Lightact.exe" -nic "192.169.0.101 12345".

Custom launch arguments

In LightAct, you can also create your own custom launch arguments which you can then read through the Get Launch Argument node. The string after the dash is considered the key, and the string in the quotation marks is considered the value.

For example, if you launch LightAct with the formatting "C:\Program Files\Lightact\Lightact4\Lightact.exe" -pizza "cheese", -pizza is your key and cheese is your value.

Last updated