<?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[Copy color of a clone to an other clone]]></title><description><![CDATA[<p dir="auto">Hey, first time posting here.<br />
i´m trying to copy the clones color of cloner A to clones of cloner B.<br />
I want to colorize the clones of cloner A (giver-cloner) with some effectors and transfer the colors to the clones of cloner B (taker-cloner). So the clone with index 1 of the giver-cloner will have the same color as clone with index1 of the taker-cloner and so on for all clones.<br />
My little python script seems to work, but the viewport says smth different (same for the render).<br />
After running the script and print the MODATA_COLOR of both cloners they are the same, but Viewport still shows nothing.</p>
<p dir="auto">What am I missing here?</p>
<pre><code>import c4d
from c4d.modules import mograph as mo

def main():
    g = mo.GeGetMoData(doc.SearchObject('giver'))
    if g==None: return False
    t= mo.GeGetMoData(doc.SearchObject('taker'))
    if t==None: return False

    colorsg = g.GetArray(c4d.MODATA_COLOR)

    t.SetArray(c4d.MODATA_COLOR, colorsg, 0)
    colorst = t.GetArray(c4d.MODATA_COLOR)

    print colorsg
    print colorst
</code></pre>
<p dir="auto"><img src="https://developers.maxon.net/forum/assets/uploads/files/1537295187894-bildschirmfoto-2018-09-18-um-20.02.49-resized.png" alt="0_1537295186253_Bildschirmfoto 2018-09-18 um 20.02.49.png" class=" img-fluid img-markdown" /></p>
]]></description><link>http://developers.maxon.net/forum/topic/11010/copy-color-of-a-clone-to-an-other-clone</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 16:29:27 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/11010.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Sep 2018 18:27:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Copy color of a clone to an other clone on Wed, 19 Sep 2018 08:59:30 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">just a small request from our side: Please do not cross post to different forums (this <a href="https://forums.cgsociety.org/t/copy-clone-color-to-an-other-clone-python/2046925" target="_blank" rel="noopener noreferrer nofollow ugc">topic on CGSociety</a>). Chances are, you'll make people work for you redundantly.</p>
<p dir="auto">Cheers,<br />
Andreas</p>
]]></description><link>http://developers.maxon.net/forum/post/55751</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/55751</guid><dc:creator><![CDATA[a_block]]></dc:creator><pubDate>Wed, 19 Sep 2018 08:59:30 GMT</pubDate></item><item><title><![CDATA[Reply to Copy color of a clone to an other clone on Wed, 19 Sep 2018 06:39:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/bencaires">@<bdi>bencaires</bdi></a> thanks a lot, with python effector it works like a charm <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>http://developers.maxon.net/forum/post/55745</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/55745</guid><dc:creator><![CDATA[leo_ha]]></dc:creator><pubDate>Wed, 19 Sep 2018 06:39:47 GMT</pubDate></item><item><title><![CDATA[Reply to Copy color of a clone to an other clone on Tue, 18 Sep 2018 21:16:20 GMT]]></title><description><![CDATA[<p dir="auto">Hey Leo,</p>
<p dir="auto">I think this thread from earlier is what you need using a python effector.<br />
<a href="https://developers.maxon.net/forum/topic/10968/python-effectors/5" target="_blank" rel="noopener noreferrer nofollow ugc">https://developers.maxon.net/forum/topic/10968/python-effectors/5</a></p>
]]></description><link>http://developers.maxon.net/forum/post/55737</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/55737</guid><dc:creator><![CDATA[bencaires]]></dc:creator><pubDate>Tue, 18 Sep 2018 21:16:20 GMT</pubDate></item></channel></rss>