Navigation

    • Register
    • Login
    • Search
    1. Home
    2. milkliu
    M

    milkliu

    @milkliu

    0
    Reputation
    11
    Posts
    132
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

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

    Best posts made by milkliu

    This user does not have any upvoted posts yet.

    Latest posts made by milkliu

    is there a market to sell my plugin?

    I have just made a plugin,i want to share it and ean some money,is there a market for cinema4d?
    and if not,do you have any other place to sell it ?

    posted in General Talk •
    RE: how to control the on/off of a node in expresso?

    @m_adam Although I didn't get a solution to this problem, I found a solution to my own problem. Thank you very much.

    posted in Cinema 4D SDK •
    RE: The plugin ID '000' collides with another plugin ID in 'aaa'.

    @a_block Thank you! You Insprie me.I solve it now.
    because i have create a "plugins" folder in the installation directory,and add the folder in the preference dialog.
    it's wrong.so now i delete zhe dir in the preference dialog.
    it works well now!!
    thank you very much!!

    posted in Cinema 4D SDK •
    RE: how to control the on/off of a node in expresso?

    @m_adam I want to add it with a script from the script manager

    posted in Cinema 4D SDK •
    RE: how to control the on/off of a node in expresso?

    @merkvilson
    sorry,I should put more information about my question.
    I want to add the "on" port in the gif below use python.

    alt text

    posted in Cinema 4D SDK •
    The plugin ID '000' collides with another plugin ID in 'aaa'.

    this year i wrote my first python plugin.

    but it always get the runtimeError like this:The plugin ID '000' collides with another plugin ID in 'aaa'.

    I don't know where am I wrong.

    so I download a sample plugin folder.there are sample plugins like Py-CVRss,PyDoubleCircle,Py-Fresnel...
    and I put the samples in my plugins folder.

    also I found them got a message like this:
    RuntimeError:The plugin ID '1025245' collides with another plugin ID in 'Py-DoubleCircle'.

    above all is In c4d r20

    but, I test the sample plugins in R19,they works well and no messages.

    posted in Cinema 4D SDK •
    how to control the on/off of a node in expresso?

    I want to control the on/off of a node in expresso.
    and i found the "on" attribute can do it.
    but I can't add the input port in python.
    anyone can help me ?
    thank you very much!

    posted in Cinema 4D SDK •
    RE: how to insert a gradiet with step interperation?

    yeah! I got it!
    Thank you very much!

    posted in Cinema 4D SDK •
    how to insert a gradiet with step interperation?

    hello!
    i want to insert a gradient with step interperation.
    but this code"grad.SetData(c4d.GRADIENT_INTERPOLATION, c4d.GRADIENT_INTERPOLATION_NONE)"seems don't work.
    i want to know where do i made a mistake?
    this is my code:

    import c4d
    from c4d import gui
    
    def main():
        newMat=c4d.BaseMaterial(c4d.Mmaterial)             #create a new material
        newShader=c4d.BaseShader(c4d.Xgradient)            #create a new gradient shader 
        newShader[c4d.SLA_GRADIENT_TYPE]=2001              #change type to 2D-v 
    
        grad=newShader[c4d.SLA_GRADIENT_GRADIENT]       #get the gradient gui
        grad.SetData(c4d.GRADIENT_INTERPOLATION, c4d.GRADIENT_INTERPOLATION_NONE) #Change the interpolation
    
        newShader[c4d.SLA_GRADIENT_GRADIENT]=grad           #reassigned the gradient
        newMat[c4d.MATERIAL_COLOR_SHADER]=newShader         #gradient to color channel
        newMat.InsertShader(newShader)                      #insert shader
    
        doc.InsertMaterial(newMat)                          #insert material
    
        newMat.Message(c4d.MSG_UPDATE )
        newMat.Update( True, True )
        c4d.EventAdd()
    
    
    if __name__=='__main__':
        main()
    
    posted in Cinema 4D SDK •
    RE: How to make menus pop up in a certain distance of the mouse?

    @m_adam wow!
    I did what you say,it works!!
    you are so cool!!
    thank you very much!!!
    yeah!!

    posted in Cinema 4D SDK •