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. PixelsInProgress
    3. Posts
    • Profile
    • Following 0
    • Followers 1
    • Topics 2
    • Posts 3
    • Best 1
    • Controversial 0
    • Groups 0

    Posts made by PixelsInProgress

    • Python - Gradient userdata - Set colour and alpha

      Hi there,

      I'm looking for a method to set both colour and alpha gradients for a single userdata.

      0af4483c-b3c5-47c9-ae58-0b2fbfb5598c-image.png

      The attributes of the gradient I need to set are:

      c4d.GRADIENTKNOT_POSITION
      c4d.GRADIENTKNOT_COLOR
      

      and for the alpha gradient:

      c4d.GRADIENTKNOT_POSITION
      c4d.GRADIENTKNOT_BRIGHTNESS
      

      I can get the alpha gradient with:

      Gradient.GetAlphaGradient(self)
      

      but I can see no way to set it.

      Anybody know what I'm missing?

      Thanks,

      Adam

      posted in Bugs python s26
      PixelsInProgressP
      PixelsInProgress
    • RE: R20 Startup script location - python_init.py

      That'll do it. Thanks!

      It's worth noting that this seems to get loaded after all of the other plugins whereas in the method for previous versions it was before. - Just in case that might be a factor for anybody.

      Cheers,

      Adam

      posted in Cinema 4D SDK
      PixelsInProgressP
      PixelsInProgress
    • R20 Startup script location - python_init.py

      Hi everyone

      Anyone know if it's possible to add a startup script in R20 like in previous versions?

      The old method was adding a python_init.py file to the directory:

      Cinema 4D RXX_XXXXXXX>prefs>python

      The python directory no longer exists so not sure where to put it.

      Thanks!

      Adam

      posted in Cinema 4D SDK python r20
      PixelsInProgressP
      PixelsInProgress