Search found 3 matches

by conigs
March 5th, 2017, 1:39 pm
Forum: Expression Discussion
Topic: Measure text layer with sourceRectAtTime()
Replies: 1
Views: 13359

Re: Measure text layer with sourceRectAtTime()

Do you still need help with this? .top and .left should give you comp-space coordinates. Is there parenting involved or anything else adjusting the text sizing/position? Can you share the expression you're using?
by conigs
November 10th, 2016, 7:49 am
Forum: Scripts Discussion
Topic: Import and Export Text Layer Advice
Replies: 6
Views: 11764

Re: Import and Export Text Layer Advice

From looking at the code… I think you’d just need to change how foundlines works… After the inPoint is loaded, reset foundlines…    if ( currentlayer === null ) {        currentlayer = myComp.layers.addText("");    }    currentlayer.inPoint = tc;    //Add this line    foundlines = 0; } els...
by conigs
November 9th, 2016, 1:53 pm
Forum: Scripts Discussion
Topic: Set Marker Duration
Replies: 3
Views: 9333

Re: Set Marker Duration

Yeah, the weird thing about markers is you can make any changes to the marker value object you want… but it doesn’t take effect until it’s set back on the layer. If you’re dealing with a pre-existing marker, you can make due with your original code, but then adding  myComp.layer(1).Marker.setValueAt...