Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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. BeerTheKid9
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    BeerTheKid9

    @BeerTheKid9

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

    BeerTheKid9 Unfollow Follow

    Latest posts made by BeerTheKid9

    • RE: How to get animation tracks of Redshift material using python in Cinema 4D 2023

      Hi Manuel,

      Thank you very much.
      Your script works perfectly in my environment.

      Only one modification I made was
      if "color" in portPath:
      to
      if "color" in str(portPath):

      Thank you.

      posted in Cinema 4D SDK
      B
      BeerTheKid9
    • How to get animation tracks of Redshift material using python in Cinema 4D 2023

      How to get animation tracks of Redshift material using python in Cinema 4D 2023? (Ultimately, I want to set keyframes for the material's Diffuse Color and animate it.)

      Here is what I have tried.

      I manually added keyframes to the color parameter of RS materials, such as RS Material, RS Standard, and RS C4D Shader, and executed the followin script to get the animation tracks.
      The script returns nothing but the name of materials and no tracks. (Of course, the animation information can be seen in the dope sheet.)

      for mat in doc.GetMaterials():
          print(f"material:{mat.GetName()}")
          for track in mat.GetCTracks():
              print(f"->track:{track.GetName()}")
      

      My environment is Windows 10, Cinema 4D 2023.1.3, Redshift 3.5.13.

      Thanks in advance.

      posted in Cinema 4D SDK python
      B
      BeerTheKid9