Script like Paste Event Attributes

elodis wrote on 7/24/2007, 2:38 PM

I am dying to have a feature that functions like paste event attributes, but allows you to decide which level of attributes to paste. How would one go about writing a script that emulated this exact function?

I'm constantly want to paste plug in chains from one clip to others, but skip pasting things like cropping or event stretching.

I'm assuming that the built in function steps through these pastes one by one, if I had access to such a duplicate program I could comment out the pastes I want to skip.

Make sense?

thanks for anyone who can help!

Comments

jetdv wrote on 7/24/2007, 2:54 PM
While you can look at what effects were added to an event, you cannot know what settings are being used in those effects so. Besides that, the ONLY thing you can set is a preset and if the settings were not a preset you couldn't match them anyway.
elodis wrote on 7/24/2007, 3:02 PM

How then, is 'paste event attributes' able to paste non-preset conditions from an effects chain from one clip to others?

perhaps a script that could perform a 'paste event attributes' followed by commands to default settings not intended to be pasted? i.e.

//psudeocode

event.pasteattributes;
event.set_crop_to_default;
event.set_velocity_evelope_to_default;
.
.
.
/etc

Thanks
jetdv wrote on 7/24/2007, 3:30 PM
Because it's done inside the program where they CAN access the settings. Scripts simply cannot access the details of any effect.
elodis wrote on 7/26/2007, 2:40 PM

well how about resetting/removing other attributes that it sets? I saw a script that you wrote that removed all effects from selected events, what about removing all cropping/velocity curves that paste event attributes applies?

i still can't believe sony hasn't addressed this issue - am I not the only one who feels this would be an extremely convenient shortcut to have implemented into the system?
jetdv wrote on 7/27/2007, 6:39 AM
Removing Velocity and Pan/Crop keyframes is very simple to do. However, how would the script be able to tell which ones "are new". And what if the paste changed existing ones?

For example, supposed you had adjusted Pan/Crop on the clip on which you're pasting. Also suppose that "Paste Event Attributes" change that Pan/Crop setting. When the script removes the Pan/Crop keyframe, you'd be reset to NO Pan/Crop changes - not your original adjustment.