Yea I think I may to just take a different approach as you suggested and find a different way to get this working given this limitation.
Original Message:
Sent: 05-15-2024 21:13
From: Zachary Fradette
Subject: Scripting Changes in Layout Mode
What user action does the highlighting? Is it just releasing pauses in a scene director and the scene director has a script block?
The way that I would tackle this is, instead of renaming the groups, have all of the groups named for player 1, 2, 3, 4, and instead use a script (or even Visual Logic) to adjust the position of the groups. That way, animation wise and logic wise, it's very easy, just 1>2>3>4, but position wise the objects have shifted position.
------------------------------
Zachary Fradette
United States
------------------------------
Original Message:
Sent: 05-15-2024 20:35
From: Carlito Chippy
Subject: Scripting Changes in Layout Mode
So in terms of your curiosity. In the image below is an example of the logic. The players names get highlighted row by row however their position on the field (dots on the right) can be varied. So my logic to solve this problem such that when the name is highlighted the correct dot is highlighted is to animate each dot with an animation controller pointing to that group, so what my scrip does is renumber the groups based a comparison that matches the numbers on the left with ones on the right. It all works perfectly except it only works if the scene is highlighted on layout mode. So after working tediously on the script and getting it all to work as needed, I found out it does not work in sequencer mode. And while digging to find a solution it seems to be a high level limitation of renaming the group object in this manner. But I am hoping someone with more in depth knowledge of how Xpression handles this might have a solution or suggest another workflow to achieve same solution.
------------------------------
Carlito Chippy
Original Message:
Sent: 05-15-2024 20:16
From: Zachary Fradette
Subject: Scripting Changes in Layout Mode
I'm kinda curious of what the whole workflow is that requires renaming things within the scene itself (which is meant to be more a template for other things to change from there, not something that itself should be changing all the time per se). It might be possible to not deal with this and still get the same end result.
All that said: what is the trigger for your script to run? It may also be possible to have your original script run on the scene that has been taken online instead of the scene that's in layout. If it's from a Script command in a Keyboard shortcut, you may just need to get the Scene object from the xpOutputFramebuffer object instead of the Engine.GetScene.
------------------------------
Zachary Fradette
United States
Original Message:
Sent: 05-13-2024 18:33
From: Carlito Chippy
Subject: Scripting Changes in Layout Mode
Bumping this hoping someone has a suggestion that could help me.
------------------------------
Carlito Chippy
Original Message:
Sent: 04-24-2024 14:48
From: Carlito Chippy
Subject: Scripting Changes in Layout Mode
I dont necessarily want to. My scene relies on having group names have numbers numbers in a specific order (based on data that comes in each game), I have a script that renames the groups but it only works in Layout mode AND with the scene being the focused scene, so that is why I switch to Layout mode, have the script run and then back to Sequencer when done. I am open to doing it another way that works, this was my solution after realizing the groups do not get renames if the script runs in Sequencer mode.
------------------------------
Carlito Chippy
Original Message:
Sent: 04-24-2024 14:41
From: Garner Millward
Subject: Scripting Changes in Layout Mode
Hmm..
Why do you want to edit in both Layout and Sequencer?
Original Message:
Sent: 04-23-2024 13:03
From: Carlito Chippy
Subject: Scripting Changes in Layout Mode
Doing this in Xpression with Dashboard as a control for some items.
------------------------------
Carlito Chippy
Original Message:
Sent: 04-23-2024 12:59
From: Garner Millward
Subject: Scripting Changes in Layout Mode
Are you making an C#/C++/Visual Basic API app or doing all of this directly inside of XPression?