On 13/10/2014 at 02:51, xxxxxxxx wrote:
Hello,
i have a simple script that gernerates a TextureBake Tag and bake the AO to Vertexmap. But if i will rename the generetet VertexMap or set to selected, in the Console is all good but in the Objectmanager is the old name in the VertexMap Tag and no VertexMap is selected.
I need a Solution for this.
Here is the Simple Code:
tag=op.GetTag(c4d.Tbaketexture)
tag[c4d.BAKETEXTURE_CHANNEL_AO]=True
tag[c4d.BAKETEXTURE_AO_TO_VERTEX]=True
c4d.CallButton(tag, c4d.BAKETEXTURE_BAKE)
tag=obj.GetTag(c4d.Tvertexmap) # Select VertexMap
tag.SetName("Ao Dirt Map")
doc.SetActiveTag(tag)
greetz iDani