THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/11/2003 at 07:36, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.206
Platform:
Language(s) : C.O.F.F.E.E ;
---------
hi,
im trying to add some uvw data to an object in my scene using this code:
CreateUVWTag(op)
{
var t_tag = new(UVWTag);
var a_uvwcoords = new(array,1000);
var counter;
var v_coord = vector(0);
for(counter=0; counter < 1000; counter++)
{
v_coord.x = 1.0;
v_coord.y = 1.0;
a_uvwcoords[counter] = v_coord;
}
var vc = new(VariableChanged);
vc->Init(0,op->GetPolygonCount());
if (!t_tag->Message(MSG_POLYGONS_CHANGED,vc))
return;
if(!t_tag->SetData(a_uvwcoords))
{
println("SetData Failed!");
return;
}
t_tag->Message(MSG_UPDATE);
if(!op->InsertTag(t_tag, NULL))
{
println("InsertTag Failed!");
return;
}
op->Message(MSG_UPDATE);
}
but it keeps saying SetData Failed! in console
Why is it doing this?