anybody here anymore?? more questions??

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
jdietz
Posts: 5
Joined: September 28th, 2004, 1:42 pm
Location: Chicago
Contact:

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
Shinjipierre
Posts: 36
Joined: December 4th, 2004, 10:10 am

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.
jdietz
Posts: 5
Joined: September 28th, 2004, 1:42 pm
Location: Chicago
Contact:

right on!
Post Reply