THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/09/2011 at 12:40, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R9.1
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
Hi together,
I'm trying to read the data from a normal tag to export it. But if I try to get the data from the tag an error is thrown.
My current code looks like this:
GetNormalData(normalTag)
{
var data = normalTag->GetData();//Here the error occures
var vectorData = new(array, sizeof(data) / 3);
var i;
for (i = 0; i < sizeof(vectorData); i++)
{
vectorData = vnorm(vector(data[i * 3 + 0],
data[i * 3 + 1],
data[i * 3 + 2]));
}
return vectorData;
}
The error says: Too few parameters
But a Normal Tag is a VariableTag and in the documentation it is said that VariableTag has a parameterless GetData() function.
What am I doing wrong?
Thanks for replies,
UserXXX