Execute a external app from Viz Command

Marcos

New member
Hello,

I'd like to execute an application when the engine starts. My main idea is use the Startup Command to execute a Viz Command to run and application, but I cannot find a direct way to do it. Anyone know how to do it?

I have a couple of options to do it (but using several commands):
- Create a Director, then an action channel and then a Action KeyFrame, and put the application in the value, change it to Task and Execute it
- Create a container, create a script, set in the script the code with the app to run in the OnInt() and compile it
but probably there should be an easier way
 
In scripting, you can use System.StartApplication. Also, you can use the DataSystem DataPool plugin.

I wish there was a way to return results of a command instead of just launching applications.
 
Yes, this is my best shot for now: Having a scene with a System.StartApplication in the OnInit script that execute the applicacion. And call a SET_OBJECT in the startup command to load this scene

But it seems this doesn't work if you haven't the autologin set (because the command is executed before the GH is connected)
 
you might have good reasons to why not, but, I am just curious: why not start viz through a bat file that will also start the application?
if the application need viz running before it starts, set delay in bat?
we used this before when we needed to delay the viz start on engines (delaying the viz starting x seconds)
 
What we are doing right now is install a software and the installer is already going to the engine config and add lines to the StartupCommands. That is the reason we wanted to get a Viz command. So, in any machine anyone install this software also can knows if it is up to date

Maybe we could mofidy our installer to change all the shortcuts to execute a bat file... a little more complicate but we could give a try
 
did you try an action keyframe set to task? Just type the application you want to run and trigger it via the keyframe. calc is used as example here. Try Notepad or just a mp3file which will trigger the default mediaplayer 1780558081862.png
 
Hi Lars. Yes, I had it as one of my options... but too many commands

This was the beging of everything: I made this and it was so sad press the execute button and there was nothing in the console I could copy/paste 😅
 
Back
Top