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:
Cinema 4D Version: R9.1
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
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:
var data = normalTag->GetData();//Here the error occures
var vectorData = new(array, sizeof(data) / 3);
for (i = 0; i < sizeof(vectorData); i++)
vectorData = vnorm(vector(data[i * 3 + 0],
data[i * 3 + 1],
data[i * 3 + 2]));
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,
On 28/09/2011 at 02:04, xxxxxxxx wrote:
It seems like data access of the normal tag is not supported by COFFEE. I will ask the developers to make sure.
On 28/09/2011 at 07:13, xxxxxxxx wrote:
Just got an answer from our developers. Currently data access of the the normal tag is not supported by COFFEE.
On 28/09/2011 at 08:11, xxxxxxxx wrote:
Thank you, then I'll have to calculate normals before exporting