Spend a x and y Point

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
shahaga
Posts: 1
Joined: April 25th, 2007, 7:57 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 = meinePosition.value;
//writeLn(a);
alert("punkte " + i +": " + neuePosition[a]);
}
Post Reply