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

    how to use the commands from Octane/Redshift's symbols.h

    General Talk
    programming
    2
    2
    461
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      RTF
      last edited by

      As a beginner, how to use the commands from Octane/Redshift's symbols.h when writing C4D scripts?
      5a443c08-0d48-48f2-b848-f0f971292d2c-image.png
      5a46b6df-da5c-4a5f-a94e-b1b97d5863b7-image.png
      In the image above, those are enumerated commands from symbols.h, but I don't know how to use them in scripts.

      Are there any learning resources available about this topic?

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @RTF
        last edited by ferdinand

        Hey @RTF,

        Thank you for reaching out to us. There is no fully automatic way to do this, as it is up to third parties to expose their APIs to Python. When a vendor does not offer a Python API, you can do two things:

        1. Simply define the symbols yourself in your Python code, they are just integer values after all.
        2. With mxutils.ImportSymbols you can import symbols from a resource, e.g., a symbols.h file. It is (a part of) the very mechanism we use to automatically expose the symbols from the native Cinema 4D C++ API to the Python API.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        E 1 Reply Last reply Reply Quote 0
        • ferdinandF ferdinand forked this topic on
        • First post
          Last post