create subclip, add trim event and add velocity

playmarius wrote on 4/28/2023, 7:07 AM

Hi, is there a way to create a script that can create a subclip, put the switches/properties to trim event to include all frames and put velocity on it.

I've tried doing those options, but when i decrease the velocity .... the subclip don't increase in length only when i increase velocity then the clip get's shorter. Maybe with a script that will recalculate, after each move of velocity, the lenght of the event/subclip. Maybe this will solve the issue that i have.

Thanks.

For more info i found this topic on video: watch Joelson video

https://www.vegascreativesoftware.info/us/forum/applying-velocity-envelope-to-slip-clip--138014/

Comments

Dexcon wrote on 4/28/2023, 7:23 AM

Have you tried using Copy from the original event and then using R click the destination event and selecting 'Selectively Paste Event Attributes' and then check 'Video event velocity attributes'. The velocity copies and the destination event can be lengthened or shortened with the velocity envelope still effective (VP20 b370) without a problem.

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 20, 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

playmarius wrote on 4/29/2023, 8:14 AM

Tried that, seems that my vegas version has a bug or something because makes the event length shorter, but the event it's not getting longer when i move the velocity down ... I try now to create some kind of script for automation all those commands subclip, properties and velocity .. but I'm having trouble figure out how to link the vegas library to vs code ... :(

playmarius wrote on 4/29/2023, 5:33 PM

Figured out most of the script, the only problem remain how can i change the event properties from loop to trim. See the pic below.

Maybe @jetdv can you help me?

jetdv wrote on 4/30/2023, 7:16 AM

Here's how that information is accessed:

            //Video Event tab
            bool vMute = vEvent.Mute;
            bool vLock = vEvent.Locked;
            bool vLoop = vEvent.Loop;
            bool vAspect = vEvent.MaintainAspectRatio;
            bool vRIF = vEvent.ReduceInterlace;
            VideoResampleMode vResample = vEvent.ResampleMode;
            double vPlayback = vEvent.PlaybackRate;
            double vUndersample = vEvent.UnderSampleRate;

Unfortunately, it appears "Trim" is not something available to the scripts at this time.

playmarius wrote on 4/30/2023, 11:53 AM

Thank you @jetdv I have written a mail to Magix support to ask for help because I see that the documentation API and FAQ are from 2018-2021. Maybe they will help me.