On 16/06/2015 at 08:00, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 16
Platform: Windows ;
Language(s) : C++ ;
---------
Hello,
I create two UVW Tags in my code and I want to use optimal mapping on the first one and quader mapping on the second one. How can I achieve this? I know about the CallUVCommand but how can I tell the program to use one of my UVW Tags?
// Generate Lightmap UV
UVWTag* lightmap_uv_tag = (UVWTag* )op->MakeVariableTag(Tuvw,polyobj->GetPolygonCount(),nullptr);
lightmap_uv_tag->SetName("lightmap");
// Generate Texture UV
UVWTag* texture_uv_tag = (UVWTag* )op->MakeVariableTag(Tuvw,polyobj->GetPolygonCount(),nullptr);
texture_uv_tag->SetName("texture");
Thanks
crush4