Hey, first time posting here.
i´m trying to copy the clones color of cloner A to clones of cloner B.
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.
My little python script seems to work, but the viewport says smth different (same for the render).
After running the script and print the MODATA_COLOR of both cloners they are the same, but Viewport still shows nothing.
What am I missing here?
from c4d.modules import mograph as mo
g = mo.GeGetMoData(doc.SearchObject('giver'))
if g==None: return False
if t==None: return False
colorsg = g.GetArray(c4d.MODATA_COLOR)
t.SetArray(c4d.MODATA_COLOR, colorsg, 0)
colorst = t.GetArray(c4d.MODATA_COLOR)
I think this thread from earlier is what you need using a python effector.
@bencaires thanks a lot, with python effector it works like a charm
just a small request from our side: Please do not cross post to different forums (this topic on CGSociety). Chances are, you'll make people work for you redundantly.