Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. milkliu
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 11
    • Best 0
    • Controversial 0
    • Groups 0

    milkliu

    @milkliu

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

    milkliu Unfollow Follow

    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
      M
      milkliu
    • 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
      M
      milkliu
    • 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
      M
      milkliu
    • 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
      M
      milkliu
    • 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
      M
      milkliu
    • 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 r20 python windows
      M
      milkliu
    • 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 r20 python windows
      M
      milkliu
    • RE: how to insert a gradiet with step interperation?

      yeah! I got it!
      Thank you very much!

      posted in Cinema 4D SDK
      M
      milkliu
    • 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 python r20
      M
      milkliu
    • 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
      M
      milkliu