If you can grab a Scene that's in the project you want to edit the Widget of, you can use it as a reference point to get the project object, then edit the widget from there.
I've tested this script out on a global keyboard shortcut. The widget was in an inactive project, but had a scene online that was from that project.
dim sc as xpScene
dim ofb as xpOutputFrameBuffer
Engine.GetOutputFrameBuffer(0, ofb)
ofb.GetSceneOnLayer(0, sc)
dim widget as xpCounterWidget
sc.Project.GetWidgetByName("MyCounterWidget", widget)
widget.Up
------------------------------
Zachary Fradette
United States
------------------------------
Original Message:
Sent: 01-24-2025 11:19
From: Brian Bell
Subject: Widget Control via scripting
I have two projects loaded, and I have widgets attached to a base project while another project is active. Is there a method via scripting to control the widgets in the non-active project?
------------------------------
Brian Bell
Senior Real-Time Developer
ESPN INC.
Charlotte United States
------------------------------