Original Message:
Sent: 01-08-2025 05:01
From: Oda Skavlid
Subject: Translate Visual Logic to scripting?
Hi!
Yes, I've just implemented an idea I had to duplicate the background quad and make it static and as long as the lower third can be. This way it fills the gap between the actual background and the mask. This does the trick in this case since it's a solid color background.
Oda
------------------------------
Oda Skavlid
Original Message:
Sent: 01-07-2025 10:39
From: Simon Redmile
Subject: Translate Visual Logic to scripting?
Did you resolve this?
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
Original Message:
Sent: 12-23-2024 11:24
From: Oda Skavlid
Subject: Translate Visual Logic to scripting?
No, on the way in the background and text are revealed simontaneousely and as expected. I have not seen only the background without the text.
Best regards,
Oda
------------------------------
Oda Skavlid
Original Message:
Sent: 12-23-2024 11:11
From: Simon Redmile
Subject: Translate Visual Logic to scripting?
On the way in is the mask ahead on the text so for example you see blank red on the way in?
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
Original Message:
Sent: 12-21-2024 16:10
From: Oda Skavlid
Subject: Translate Visual Logic to scripting?
Hi again,
I managed to move a new quad based on the x position of the mask:
dim obja as xpBaseObject
dim objb as xpBaseObject
Self.GetObjectByName("MASK_left", obja)
Self.GetObjectByName("ny", objb)
objb.PosX=(obja.PosX+20)
It looks like this new quad is even another step behind the desired animation, which is the opposite of what I hoped. Maybe it will sync if I can script the mask directly, but I can't figure out how to get the BoundingBox.WidthScaled value to make the script directly (and add the logic I now have in Visual Logic).
Is there any way to prerender the path so it doesn't lag behind? Any and all suggestions and solutions are highly welcome!
Best regards,
Oda
------------------------------
Oda Skavlid
Original Message:
Sent: 12-20-2024 15:49
From: Oda Skavlid
Subject: Translate Visual Logic to scripting?
Hello!
I'm having some trouble with visual logic not keeping up with the 14 frame out animation (it works just fine when animating in).
I'm making a lower third where the background quad is scaled by the length of the text, both anchored on the right.
The In and Out animation is the TLF_BKG scaled x 0 to 100 keyframed each frame to match the provided curve and to hide the text there's a mask that has this visual logic.:
Like this:
The text position is also slightly animated with position x.
When taking the graphic on air the text is not visible outside the background but when animating out the mask seems to be one step behind the background.
Like this:
This is not visible in layout. I'm thinking the fix here is to script the position of the mask, is there any other way to do it?
I've tried tinkering with a script but can't find a way to get the BoundingBox.WidthScaled or getting the "simple" calculations to run. I'm sure there's lots missing in it.
I tried VL'ing the WidthScaled to a separate text object with something like this OnOnline:
dim scene as xpScene
dim bkg as xpBaseObject
dim mask as xpBaseObject
dim bredde as xpTextObject
Self.GetObjectByName("TLF_BKG", bkg)
Self.GetObjectByName("MASK_left", mask)
Self.GetTextObjectByName("Bredde", bredde)
mask.PosX = (bredde.Text)
Any help and pointers will be much appreciated!
Best regards,
Oda
------------------------------
Oda Skavlid
------------------------------