Navigation

    • Register
    • Login
    • Search
    1. Home
    2. leo_ha
    L

    leo_ha

    @leo_ha

    0
    Reputation
    2
    Posts
    67
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    leo_ha Follow

    Best posts made by leo_ha

    This user does not have any upvoted posts yet.

    Latest posts made by leo_ha

    RE: Copy color of a clone to an other clone

    @bencaires thanks a lot, with python effector it works like a charm 🙂

    posted in Cinema 4D SDK •
    Copy color of a clone to an other clone

    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?

    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
    

    0_1537295186253_Bildschirmfoto 2018-09-18 um 20.02.49.png

    posted in Cinema 4D SDK •