Cursor position

RedyM wrote on 3/18/2022, 9:06 PM

Hey everyone,

 

I'm wondering if there's a way to get the cursor position relative to the effects panel. Here's a picture of what I'm talking about

 

If it's not possible, then, is it possible to toggle the "Sync Cursor to media timeline" checkbox? (this basically makes sure the project cursor and the cursor in the effects panel are synced together) picture

 

thanks,

Redy

Comments

Dexcon wrote on 3/18/2022, 9:20 PM

... is it possible to toggle the "Sync Cursor to media timeline" checkbox? (this basically makes sure the project cursor and the cursor in the effects panel are synced together)

Yes. Just click on the lock icon to activate/de-activate syncing. When activated, the cursor on the timeline and the cursor in the FX window will then both be at the same point on the video event and will follow the other when either cursor is moved.

Cameras: Sony FDR-AX100E; GoPro Hero 11 Black Creator Edition

Installed: Vegas Pro 15, 16, 17, 18, 19, 20, 21 & 22, HitFilm Pro 2021.3, DaVinci Resolve Studio 19.0.3, BCC 2025, Mocha Pro 2025.0, NBFX TotalFX 7, Neat NR, DVD Architect 6.0, MAGIX Travel Maps, Sound Forge Pro 16, SpectraLayers Pro 11, iZotope RX11 Advanced and many other iZ plugins, Vegasaur 4.0

Windows 11

Dell Alienware Aurora 11:

10th Gen Intel i9 10900KF - 10 cores (20 threads) - 3.7 to 5.3 GHz

NVIDIA GeForce RTX 2080 SUPER 8GB GDDR6 - liquid cooled

64GB RAM - Dual Channel HyperX FURY DDR4 XMP at 3200MHz

C drive: 2TB Samsung 990 PCIe 4.0 NVMe M.2 PCIe SSD

D: drive: 4TB Samsung 870 SATA SSD (used for media for editing current projects)

E: drive: 2TB Samsung 870 SATA SSD

F: drive: 6TB WD 7200 rpm Black HDD 3.5"

Dell Ultrasharp 32" 4K Color Calibrated Monitor

 

LAPTOP:

Dell Inspiron 5310 EVO 13.3"

i5-11320H CPU

C Drive: 1TB Corsair Gen4 NVMe M.2 2230 SSD (upgraded from the original 500 GB SSD)

Monitor is 2560 x 1600 @ 60 Hz

RedyM wrote on 3/18/2022, 9:25 PM

... is it possible to toggle the "Sync Cursor to media timeline" checkbox? (this basically makes sure the project cursor and the cursor in the effects panel are synced together)

Yes. Just click on the lock icon to activate/de-activate syncing. When activated, the cursor on the timeline and the cursor in the FX window will then both be at the same point on the video event and will follow the other when either cursor is moved.

Wow, thank you so much for this quick answer! Sorry for not being clear enough but I'm asking for a way to check it via scripting, not manually.

Thanks again,
Redy

walter-i. wrote on 3/19/2022, 4:25 AM

@RedyM
Just for the info for the next time - you can embed pictures here directly - with the icon left of the smiley

jetdv wrote on 3/19/2022, 9:37 AM

@RedyM, yes you can. Just get the keyframes list for that effect, go to that keyframe, and get the "position" of that keyframe. This tutorial shows how to add keyframes at a specific location for and effect:

If you want to provide me with some more details, I can certainly create a new tutorial that shows how to read this information. Are you just wanting how far in each keyframe is?

jetdv wrote on 3/19/2022, 3:28 PM

@RedyM, I've just recorded a couple new tutorials showing how to go through effects on events on the timeline and go through each parameter and each keyframe on each of those parameters. It's a two part series because of the length of the tutorials but I plan to have them show up on March 28th and April 4th.

RedyM wrote on 3/19/2022, 6:49 PM

@RedyM, yes you can. Just get the keyframes list for that effect, go to that keyframe, and get the "position" of that keyframe. This tutorial shows how to add keyframes at a specific location for and effect:

If you want to provide me with some more details, I can certainly create a new tutorial that shows how to read this information. Are you just wanting how far in each keyframe is?

Thank you for your answer. Actually, I don't really want to get the position of the keyframes, I want to get the position of the actual cursor relative to the effects panel.


here's what I mean by "cursor":

if it's not possible to get the cursor's position, then is there a way to check this checkbox via scripting?

 

RedyM wrote on 3/19/2022, 6:50 PM

@RedyM
Just for the info for the next time - you can embed pictures here directly - with the icon left of the smiley

completely missed this 🤦‍♂️ thanks for the info!

jetdv wrote on 3/20/2022, 7:17 AM

@RedyM You cannot check that box with a script. If you want the timeline to match effect box, make sure that that "lock" box is checked (once you check it, it will stay checked.) I just leave it checked all the time but you do have to watch out when opening the effects or Pan/Crop as the cursor will "start" in whatever position it is in on the timeline so you have to watch out that you don't erroneously create unwanted keyframes.

Scripting cannot see the "Effects Window" - but it can set and read keyframes in different positions. In short, there's no way for a script to check that option and no way for a script to see where on the effect timeline the cursor is located in that box.

Now a script CAN see the cursor position on the main timeline. And, if it's over that event, it can tell how far into that event it is but that might not correspond to the position shown in the effect window.

Watch the tutorials over the next three Mondays and I think you'll find them interesting anyway.

Dexcon wrote on 3/20/2022, 7:34 AM

@jetdv  ... from a largely ignorant point-of-view of scripting, if the OP's scripting request was possible, would that not involve more mouse clicks within Vegas Pro than just the one click needed on the on/off click on the 'lock' icon in an FX or pan/crop window? Happy to learn.

Cameras: Sony FDR-AX100E; GoPro Hero 11 Black Creator Edition

Installed: Vegas Pro 15, 16, 17, 18, 19, 20, 21 & 22, HitFilm Pro 2021.3, DaVinci Resolve Studio 19.0.3, BCC 2025, Mocha Pro 2025.0, NBFX TotalFX 7, Neat NR, DVD Architect 6.0, MAGIX Travel Maps, Sound Forge Pro 16, SpectraLayers Pro 11, iZotope RX11 Advanced and many other iZ plugins, Vegasaur 4.0

Windows 11

Dell Alienware Aurora 11:

10th Gen Intel i9 10900KF - 10 cores (20 threads) - 3.7 to 5.3 GHz

NVIDIA GeForce RTX 2080 SUPER 8GB GDDR6 - liquid cooled

64GB RAM - Dual Channel HyperX FURY DDR4 XMP at 3200MHz

C drive: 2TB Samsung 990 PCIe 4.0 NVMe M.2 PCIe SSD

D: drive: 4TB Samsung 870 SATA SSD (used for media for editing current projects)

E: drive: 2TB Samsung 870 SATA SSD

F: drive: 6TB WD 7200 rpm Black HDD 3.5"

Dell Ultrasharp 32" 4K Color Calibrated Monitor

 

LAPTOP:

Dell Inspiron 5310 EVO 13.3"

i5-11320H CPU

C Drive: 1TB Corsair Gen4 NVMe M.2 2230 SSD (upgraded from the original 500 GB SSD)

Monitor is 2560 x 1600 @ 60 Hz

jetdv wrote on 3/20/2022, 7:38 AM

@Dexcon, Maybe, or maybe not - depending on what else he wanted the script to do. If it was to do other things "after" clicking that button then it might be helpful. In this case, I agree I don't see a big need for a script that can just click on that button.

RedyM wrote on 3/20/2022, 11:04 AM

@RedyM You cannot check that box with a script. If you want the timeline to match effect box, make sure that that "lock" box is checked (once you check it, it will stay checked.) I just leave it checked all the time but you do have to watch out when opening the effects or Pan/Crop as the cursor will "start" in whatever position it is in on the timeline so you have to watch out that you don't erroneously create unwanted keyframes.

Scripting cannot see the "Effects Window" - but it can set and read keyframes in different positions. In short, there's no way for a script to check that option and no way for a script to see where on the effect timeline the cursor is located in that box.

Now a script CAN see the cursor position on the main timeline. And, if it's over that event, it can tell how far into that event it is but that might not correspond to the position shown in the effect window.

Watch the tutorials over the next three Mondays and I think you'll find them interesting anyway.

Exactly what I needed to know, thank you so much. I'll sure watch the tutorials!