Expressions/Scripts/Presets

Moderator: Paul Tuersley

 
shahaga
Topic Author
Posts: 1
Joined: Wed Apr 25, 2007 7:57 am

Spend a x and y Point

Wed May 30, 2007 2:31 am

Hello,
i have problem first I would like to spend all x and y points of the position from Solide and to write then the expenditure-even points in a file.

can someone help me?

My Progrom is:

app.newProject()

var comp = app.project.activeItem;

// create new comp named 'my text comp'

var compW = 500; // comp width
var compH = 500; // comp height
var compL = 7; // comp length (seconds)
var compRate = 5; // comp frame rate
var compBG = [48/255,63/255,84/255] // comp background color

var myItemCollection = app.project.items;
var myComp = myItemCollection.addComp('my text comp',compW,compH,1,compL,compRate);
myComp.bgColor = compBG;
var mySolid = myComp.layers.addSolid([1.0,1.0,1], "Meine Layer",20,40,3);



var neuePosition= new Array();
var a= new Array();

var meinePosition = new Array();
meinePosition = mySolid.property("position");
meinePosition.setValueAtTime(1,[324,30]);
meinePosition.setValueAtTime(2,[193,92]);
meinePosition.setValueAtTime(3,[362,335]);

for (var i = 1; i <= meinePosition.numKeys; i++)
{
a[i] = meinePosition.value;
//writeLn(a[i]);
alert("punkte " + i +": " + neuePosition[a]);
}

Who is online

Users browsing this forum: No registered users and 3 guests