Position Values Not Showing Until Manually Controlled

Hi all,

I am looking to make it easier for my operators to move headshots/other images around a graphic when in the sequencer. I have written the script below, which gets the focused published object, then will add/subtract a certain amount to the X or Y value, depending on the key pressed. When I run the script, the value does not appear to change initially. When tab down then back up, the value will update, but will not be sent to the graphic until I manually click into the XY value fields. Is this just a limitation of XPression in that the values don’t actually send to the graphic until the up/down arrows are manually pressed? Or is there a way around this?

To be clear, the script does work, and it does send the correct to the sequencer. The graphic just does not reflect it until I press up/down on the positioned values.

Thanks!

dim pub as xpPublishedObject
dim name as string
dim name2 as string
dim x as double = 0
dim y as double = 0
dim z as double = 0
dim propName as string
dim propType as double
dim index as integer

'Get the TakeID of the focused sequencer item.
engine.sequencer.GetFocusedPublishedObject(pub)

name = pub.Name
name2 = name.ToUpper

for index = 0 to 2
pub.GetPropertyInfo(index, propName, propType)
if propType = 1 then
if propName.ToUpper.Contains(“POSITION”) then
pub.GetPropertyVector(index, x, y, z)
dim newY
newY = y + .01
pub.SetPropertyVector(index, x, newY, z)
end if

end if

next

Are you running this from the keyboard map?

When you say “will not be sent to the graphic” and “don’t actually send to the graphic” - are you talking about the graphic in the preview window in Sequencer or a graphic that is online in Sequencer?