<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Vertex Map Tag not in sync error]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I am running the following code to create a vertex map tag on an object (targetObject is a sphere BaseObject every time I call the function):</p>
<pre><code># Make object editable
res = c4d.utils.SendModelingCommand(
		command = c4d.MCOMMAND_MAKEEDITABLE,
		list = [targetObject],
		mode = c4d.MODELINGCOMMANDMODE_ALL,
		doc = doc )

if res is False or res is True:
	raise TypeError()
elif isinstance( res, list ):
	doc.InsertObject( res[0] )

vertexMapTag = res[0].GetTag( c4d.Tvertexmap )
if vertexMapTag is None:
	vertexMapTag = c4d.BaseTag( c4d.Tvertexmap )
	vertexMapTag[c4d.ID_TAGFIELD_ENABLE] = True
	vertexMapTag[c4d.ID_TAGFIELD_INVERT] = False
	vertexMapTag[c4d.ID_TAGFIELD_DEFORMED] = False
	res[0].InsertTag( vertexMapTag )
c4d.EventAdd()
</code></pre>
<p dir="auto">After running this I get a sphere with a UVW tag and a vertex map tag, as intended. However, when I select the sphere and select the paint tool, I get the following error:</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1729613327862-77c31dba-62a2-448c-a4d7-e20ae34ed77a-image.png" alt="77c31dba-62a2-448c-a4d7-e20ae34ed77a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">What is causing the tag to not be in sync?</p>
<p dir="auto">Thank you for your help,<br />
Daniel</p>
]]></description><link>http://developers.maxon.net/forum/topic/15777/vertex-map-tag-not-in-sync-error</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 13:23:22 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/15777.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Oct 2024 16:15:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Vertex Map Tag not in sync error on Tue, 29 Oct 2024 17:26:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi Ilia,</p>
<p dir="auto">Thank you very much, I was not aware of that!</p>
<p dir="auto">Cheers!</p>
]]></description><link>http://developers.maxon.net/forum/post/75223</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/75223</guid><dc:creator><![CDATA[danniccs]]></dc:creator><pubDate>Tue, 29 Oct 2024 17:26:31 GMT</pubDate></item><item><title><![CDATA[Reply to Vertex Map Tag not in sync error on Tue, 29 Oct 2024 08:01:41 GMT]]></title><description><![CDATA[<p dir="auto">Hi Daniel,</p>
<p dir="auto">Please excuse the delayed answer.</p>
<p dir="auto">You're not supposed to create tags via constructor. It's expected to be created using <a href="https://developers.maxon.net/docs/py/2025_0_0/modules/c4d/C4DAtom/GeListNode/BaseList2D/BaseObject/index.html#BaseObject.MakeVariableTag" target="_blank" rel="noopener noreferrer nofollow ugc">MakeVariableTag()</a> function instead. Please have a look at Ferdinand's example here: <a href="https://developers.maxon.net/forum/topic/15554/negative-vertex-map-values/2?_=1730188556773" target="_blank" rel="noopener noreferrer nofollow ugc">Negative Vertex Map values</a></p>
<p dir="auto">Cheers,<br />
Ilia</p>
]]></description><link>http://developers.maxon.net/forum/post/75214</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/75214</guid><dc:creator><![CDATA[i_mazlov]]></dc:creator><pubDate>Tue, 29 Oct 2024 08:01:41 GMT</pubDate></item></channel></rss>