Paul Tuersley wrote:
Unfortunately I appear to have hit a dead end when I try to query the stroke inPoints, presumably because that is a layer attribute, and brush strokes aren't layers. I'll do some more research on this and get back to you.
Thanks for the help Paul! I managed to access the brush stroke start times by doing the following (thanks also to Dan Ebberts):
var proj = app.project;
var activeComp = proj.activeItem;
var selectedLayers = activeComp.selectedLayers;
var myEffect = selectedLayers.property("ADBE Effect Parade");
var myPaintBrushes = myEffect.property("ADBE Paint").property("ADBE Paint Group");
var myBrush = myPaintBrushes.property(1);
// By querying the Duration you get an array with [starttime,duration]
var myProperty = myBrush.property("ADBE Paint Duration");
// So, here is the start time.
var myStartTime = myProperty.value;
I should have a script that works tonight. Thanks for the help,