gpn18 get composition by name
This commit is contained in:
parent
2c6d6f3cba
commit
22b2ffa51d
2 changed files with 14 additions and 2 deletions
|
@ -1,4 +1,10 @@
|
||||||
var comp = app.project.item(3);
|
var comp;
|
||||||
|
for (var i = 1; i <= app.project.numItems; i ++) {
|
||||||
|
if ((app.project.item(i) instanceof CompItem) && (app.project.item(i).name === 'text')) {
|
||||||
|
comp = app.project.item(i);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var layer_title = comp.layer('intro_title');
|
var layer_title = comp.layer('intro_title');
|
||||||
var textProp_title = layer_title.property("Source Text");
|
var textProp_title = layer_title.property("Source Text");
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
var comp = app.project.item(4);
|
var comp;
|
||||||
|
for (var i = 1; i <= app.project.numItems; i ++) {
|
||||||
|
if ((app.project.item(i) instanceof CompItem) && (app.project.item(i).name === 'text')) {
|
||||||
|
comp = app.project.item(i);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var layer_title = comp.layer('intro_title');
|
var layer_title = comp.layer('intro_title');
|
||||||
var textProp_title = layer_title.property("Source Text");
|
var textProp_title = layer_title.property("Source Text");
|
||||||
|
|
Loading…
Add table
Reference in a new issue