[Help] Script that gives a selected clip a self-made mask

Yamiks wrote on 5/15/2018, 3:44 PM

After reading up multiple things, going thru many scripts & re-learning (party) C# coding, I still can't really find a way to even begin making a script that does a relatively simple thing:

  1. enable MASK layer under Pan/Crop
  2. select a specific mask template/preset I made under that drop down list (let's call it "TEST_MASK")

If anyone could help out it would be a tremendous help!

Is this even possible?

Comments

Grazie wrote on 5/17/2018, 11:17 PM

@Yamiks : Firstly I ain’t a Scripter - PERIOD! 😳 But I DO know people who are. Maybe I can invite them to the Table? Suffice it to say, my meagre understanding of this Dark Art is that if this part of the SDK doesn’t allow for this Mask area to be revealed, then all bets are off.

Yamiks wrote on 5/18/2018, 6:12 AM

@Yamiks : Firstly I ain’t a Scripter - PERIOD! 😳 But I DO know people who are. Maybe I can invite them to the Table? Suffice it to say, my meagre understanding of this Dark Art is that if this part of the SDK doesn’t allow for this Mask area to be revealed, then all bets are off.


Sure thing, I'll take all the help I can!

It's been frustrating, knowing that with a script ...maybe, maybe you could make your own life a little more productive!

wwaag wrote on 5/18/2018, 11:27 AM

Unfortunately, you are probably out of luck. I've looked at the Vegas scripting api (you should download it if you are interested in writing scripts) but could find no mention of masks.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Grazie wrote on 5/18/2018, 9:41 PM

@Yamiks : Can we look at this differently? What is the outcome you want? Do you want to add the same Mask Preset to Multiple Events? Is that what you’re wanting to do?

Yamiks wrote on 5/19/2018, 7:54 AM

@Yamiks : Can we look at this differently? What is the outcome you want? Do you want to add the same Mask Preset to Multiple Events? Is that what you’re wanting to do?


What is needed here is to apply a specific mask to a clip, IF I want to apply a copy of events, settings ETC I know you can use the "paste event attributes" I use that A LOT too. But when you have 1000+ small image clips (exaggeration) finding that one clip with the mask/settings you need is a waste of time!

Yamiks wrote on 5/19/2018, 7:55 AM

Unfortunately, you are probably out of luck. I've looked at the Vegas scripting api (you should download it if you are interested in writing scripts) but could find no mention of masks.


Yep, went thru the API too and saw NOTHING in regards to Pan/Crop or Mask.

altarvic wrote on 5/19/2018, 2:57 PM

Vegas scripting API doesn't support masks :(