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.
Paul T
Thanks for the help Paul! I managed to access the brush stroke start times by doing the following (thanks also to Dan Ebberts):
Code:
var proj = app.project;
var activeComp = proj.activeItem;
var selectedLayers = activeComp.selectedLayers;
var myEffect = selectedLayers[0].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[0];
I should have a script that works tonight. Thanks for the help,
Oliver.