THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/05/2007 at 02:28, xxxxxxxx wrote:
Cinema 4D Version:
I've downloaded and used the COFFE SDK 95 zip and chm for quiet a while now, but I noticed that both are very incomplete. For example both lack in describing the UVWTag, and probably in many other things too. Any other idea how to obtain the needed information?
On 21/05/2007 at 02:23, xxxxxxxx wrote:
Here is a sample script that prints out the uvw tag. Should be pretty self explainatory.
var op = doc->GetActiveObject();
var myuvw = op->GetFirstTag();
//uvw tags are of VariableTag type
var pcnt = myuvw->GetDataCount();
var data = myuvw->GetData();
for(n=0; n<pcnt; n++)
println(data[n*4]); //uvw for point A of the polygon
println(data[n*4+1]);//uvw for point B of the polygon
println(data[n*4+2]);//uvw for point C of the polygon
println(data[n*4+3]);//uvw for point D of the polygon; the same as C for triangles
On 21/05/2007 at 03:39, xxxxxxxx wrote:
yeah, thanks. That solves this problem. But the need for a more comprehensive reference still remains (but as I read some older posts in this forum, that seems to be a knwon problem of the official sdk...)
On 21/05/2007 at 04:01, xxxxxxxx wrote:
well, actually i got all the needed information for the above script fronm the docu. a sdk docu will be never "complete". if you feel some areas are lacking than please do point them out and i will try to include it in the docu.
On 21/05/2007 at 07:04, xxxxxxxx wrote:
I was just confused that there is no entry at all for "UVWTag" (and I think I found this as a Class-Name in some other export script)... but well, it now seems just like a lack of unterstanding the c4d structures *g*
sry, my fault.... *solved*^^
On 21/05/2007 at 07:12, xxxxxxxx wrote:
No need to be sorry, you probably saw some C++ code because there is an UVWTag in the C++ SDK.
On 22/05/2007 at 06:31, xxxxxxxx wrote:
actually, the script above doesnt work. I get an error while C4D starts:
(118) Variable or function expected
the specified line is
seems like Tuvw is not defined (the indicated row is just behind the Tuvw-token). Im using C4D 9.012
On 22/05/2007 at 06:40, xxxxxxxx wrote:
Then use TAG_UVW instead of Tuvw. Btw. you can look up all the symbols in the coffeesymbols.h file. Also it would be a good idea to update to 9.102, it is a free update.