Discussion:
comp size with expression
(too old to reply)
b***@adobeforums.com
2008-02-18 17:26:48 UTC
Permalink
***@all
i´m looking for an expression to set the comp sice (with and high) to a new value. i have to do that with lots of compositions and mayby i have to change it later. i have found this with and high parameters under the expression menue but it won´t work for me.
sorry for bad english
thx
A***@adobeforums.com
2008-02-18 18:23:27 UTC
Permalink
What you need is a script. You can't do this with expressions.
D***@adobeforums.com
2008-02-18 22:22:32 UTC
Permalink
This simple script will set the width of all the comps in your project to 730:

for (var i = 1; i <= app.project.numItems; i++){
if (app.project.item(i) instanceof CompItem){
app.project.item(i).width = 730;
}
}

That should give you the idea.

Dan
b***@adobeforums.com
2008-02-18 18:36:04 UTC
Permalink
o.k. i thought that. therefore i have looked in this skripting-dialog, and try to understand how it works, its difficult.
can you tell me what i have to write for this step: i will set the composition size to 730

"thiscomp width = 730"
?
b***@adobeforums.com
2008-02-18 22:41:57 UTC
Permalink
thank you, dan and aaron, i will try it, this seems to be a step forward. thx, bernd
Continue reading on narkive:
Loading...