I modified the Startup.py file to add code presented by forum member "compusol" to force the visualizer window to maximize on startup. This code works great. Thanks compusol!
Does anyone know if it is possible to call a script file previous assigned to a keyboard key, eg CTRL-X, and have it called in the Startup.py file to run right after the visualizer window is maximized.
The reason I ask is I'm writing a script to call and kill certain sprites during a song using timing marks. For example, when a particular bass riff is used throughout the song the same visualizer sprites will appear and then disappear as the riff is silenced.
Obviously, I can manually run the keyboard macro CTRL-X but this seems rather lame. My intent is to have routines configured for each song then just copy the routine into CTRL-X before playing the song. So Startup.py would always run script CTRL-X but the contents of CTRL-X wouldn't always be the same. If that makes sense.
I found a lot of Python code on Internet searched to call a script file from a script file but have been so far been unable to get any to work.
Invoking a script using Startup.py
Moderators: BTT, andy55, b.dwall, juxtiphi
According to the debug function I notice each time a song is played the first routine processed is:
Runfile( 'Packages/Common.TrackAnimation.Package/Basic/Basic.py' )
This file "Basic.py" rather than the "Startup.py" file might be more suited to call the external script file for processing.
Just thinking out loud!
Runfile( 'Packages/Common.TrackAnimation.Package/Basic/Basic.py' )
This file "Basic.py" rather than the "Startup.py" file might be more suited to call the external script file for processing.
Just thinking out loud!