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

    Topics created by Jvos

    • J

      string format

      Cinema 4D SDK
      • • • Jvos
      4
      0
      Votes
      4
      Posts
      1.0k
      Views

      M

      Hi @Jvos,

      First of all, (no worry at all) I would like to remind you to read How to Post Questions especially the part about categories.
      Since your topic is related to Cinema 4D please next time create a topic within cinema 4d development. (I've moved it).

      Regarding your issue, pretty much all parameters in Cinema 4D are stored in a BaseContainer.
      A BaseContainer is a dictionary which links an ID (Int) to a Data.
      When you are doing Object[Something] you access the value within this BaseContainer.

      If you write in the console c4d.REDSHIFT_LIGHT_PHYSICAL_INTENSITY, it will print you the ID of this parameter.
      Then to get the value of a parameter which is stored in the object's BaseContainer, you don't have to pass a string, but the ID, which is registered with a SYMBOL NAME because it's easier to remember than an arbitrary number (In some case there is no SYMBOL equivalent for an ID).

      So as @mikeudin suggested the eval function is the right way to go, or you can directly store the ID in your list.

      attributes = [c4d.REDSHIFT_LIGHT_PHYSICAL_INTENSITY, c4d.REDSHIFT_LIGHT_PHYSICAL_EXPOSURE]

      Finally, there is no official C4D slack/discord or chat.
      Cheers,
      Maxime.

    • J

      get lamp attributes?

      Cinema 4D SDK
      • • • Jvos
      7
      0
      Votes
      7
      Posts
      1.8k
      Views

      a_blockA

      Hi,

      @Jvos it looks like your question got answered. Afterwards you deleted this thread. I'd like to ask you not to do so. This forum is all about sharing knowledge. There are no stupid questions and nothing to be ashamed about. Every answered question might help a future developer.

      I have moved this thread into the Cinema 4D Development category.

      Cheers,
      Andreas

    • J

      ReferenceError?

      Cinema 4D SDK
      • python • • Jvos
      6
      0
      Votes
      6
      Posts
      1.6k
      Views

      a_blockA

      Hi,

      first of all thanks to @Cairyn for nice explanations and helping in solving this.

      I'd just like to add a link to one of our examples, pretty much demonstrating this workflow: mengersponge.py (plus the scene file).

      @Jvos : I hope you don't mind, may I ask you to please open a new topic for unrelated topics/questions.
      I have also moved this thread into the Cinema 4D Development category, added some tags and turned the thread into a question.

      Cheers,
      Andreas