My question is "yes" or "no" and requires nothing further of your time.
I have a certain task I do often, change the Output Device and Output Mode of the AE Video Preview preference. Reason in parenthesis at the bottom if you must know.
can I do this essentially macro or action function, changing preference parameters as it were, by writing a script?
(so I can review heavy comps in realtime, checking animation timing etc, on the computer monitor only. Heavy comps (many layers, 2K etc.) often cannot get realtime ram previews through the Kona through my HD Element media raid and media cache , just saying... often switch back to Output device Kona for critical detail viewing during comp work. I make efficient of use of keyboard shortcuts but I would still like a macro, action, or script as it were for an even faster change to the video preview output preferences)
VFX Artist / Supervisor
PELi Studios, Austin TX
I don't think it's possible via ExtendScript or Applescript GUI scripting. You have to set it through the preferences in AE. But if you're on a Mac you can go to System Preferences and add a custom keyboard shortcut under Adobe After Effects and just type "Video Preview..." for the menu item and then assign it the keyboard shortcut you want and it will open the "Video Preview Preferences" for you--saves you from having to go to the menu>submenu at least.
This script "tricks" AE into setting the video preview device to "Computer Monitor Only", but there seems to be no way to set the preference to a specific device, so you'll have to use the above solution to switch back to your external video output:
Including "Computer Monitor Only" in the first line of code really doesn't matter--it basically sets the preference to an unknown device, forcing AE to default to "Computer Monitor Only" behind the scenes. I only wrote it out literally to show what the script is trying to do even though it doesn't mean anything. If that makes sense. It gets you one step closer.