Normal Tags in C.O.F.F.E.E.
-
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
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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.
cheers,
Matthias
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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.
cheers,
Matthias
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/09/2011 at 08:11, xxxxxxxx wrote:
Thank you, then I'll have to calculate normals before exporting