THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/02/2004 at 16:03, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.503
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
I can get point array data from the PLA key, but can not set it to the PLA key with the "SetData()" function. What is wrong?
My code is shown below, and file is uploaded to the link.
http://www.c4djug.com/cache/PLA2.zip
main(doc,op)
{
//get sequence and key
var plaseq= op->GetFirstTrack()->GetFirstSequence();
var plaky0= plaseq->GetFirstKey();
//get array data
var pladata0= plaky0->GetPointTag()->GetData();
//check
println(pladata0[0]); //Good
//create new key and tag
var plaky1= new(PLAKey);
var pitag1= new(PointTag);
//set the array to new tag
pitag1->SetData(pladata0);
//check
var pladata1= pitag1->GetData();
println(pladata1[0]); //Bad
}