Page 1 of 1

anybody here anymore?? more questions??

Posted: December 17th, 2004, 11:42 pm
by jdietz
I've got a couple scripting questions in after effects that I can't seem to
find answers too..

first, Can you change the font of a text layer.. I've tried through
the settings "Text type" in the preferences but can't seem to get that working either

second, can you query an item specifically a comp by a "compName"
instead of an index... it seems like you can do it in layers
and properties, but not items??
ie: app.projects.item("myComp") What I'm trying to do is get a
comp that is actually a layer in another comp and get inside that..

thanks,

jdietz

Posted: December 18th, 2004, 6:33 am
by Shinjipierre
I don't know if
app.projects.item("myComp")
would work.

But....

Code: Select all

	while((i <= app.project.numItems) && (trouve == 0)) {
		if(app.project.item(i).name == "Staff") {
			var Composition = app.project.item(i);
			trouve = 1;
		} else {
			i++;
		}
	}
That works.

Posted: December 18th, 2004, 6:10 pm
by jdietz
right on!