Navigation

    • Register
    • Login
    • Search
    1. Home
    2. PixelsInProgress
    PixelsInProgress

    PixelsInProgress

    @PixelsInProgress

    1
    Reputation
    3
    Posts
    86
    Profile views
    1
    Followers
    0
    Following
    Joined Last Online
    Website pixelsinprogress.com Location London

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

    Best posts made by 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 •

    Latest 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 Cinema 4D SDK •
    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 •
    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 •