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

    Making Houdini Engine visible to C4D via Python

    Cinema 4D SDK
    r21 python
    2
    4
    856
    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.
    • jcooperJ
      jcooper
      last edited by

      So at our facility we have our own (Python-coded) application launcher that launches a particular version of any given application (like C4D or Maya or whatever) based on a per-project configuration file. This launcher sets up all the necessary environment variables, bootstraps the associated Shotgun Toolkit engine (if one exists), and launches the application. All of our applications live on a central network drive and are typically licensed via floating licenses.

      So the problem here is that when C4D (R21 in this case) is launched, it doesn't know about Houdini Engine even though we have it deployed to our central network server (and yes, we have the specific version/build of Houdini required for R21). This is unsurprising since we are launching C4D, not Houdini, and so none of the usual Houdini environment is set up by our launcher.

      So my question is this: what environment variables do I need to set up in order for C4D to "see" (and use) Houdini Engine given that Houdini is not installed locally on user's machines? Simply adding the directory containing the network Houdini install to PATH has proven to not be sufficient.

      Thanks!

      (P.S. Apologies if this isn't the right forum to ask this. The other ones didn't seem like better choices to me.)

      JOHN COOPER I TECHNICAL DIRECTOR
      PSYOP LA

      1 Reply Last reply Reply Quote 0
      • jcooperJ
        jcooper
        last edited by

        So I believe I managed to get this working by creating a registry key pointing to the network Houdini installation directory. Also, it seems as though the Houdini bin directory needs to be in PATH.

        If there are other more subtle things I also need, please let me know. Thanks!

        JOHN COOPER I TECHNICAL DIRECTOR
        PSYOP LA

        1 Reply Last reply Reply Quote 0
        • r_giganteR
          r_gigante
          last edited by

          Hi @jcooper, thanks for reaching out us.

          With regard to your topic, let me add a few more details: C4D looks for the Houdini Engine by

          • first checking HAPI_PATH being set in the OS

          if not set

          • on Windows by using the path found in HKLM\\Software\\Side Effects Software\\Houdini<ENGINE_VERSION>
          • on macOS by using /Applications/Houdini/Houdini<ENGINE_VERSION>/Frameworks/Houdini.framework/Versions/Current
          • on linux by using /opt/houdini/hfs<ENGINE_VERSION>

          Considering the above options, I would first give it a go by setting HAPI_PATH or alternatively by using the other options.

          Cheers, R

          jcooperJ 1 Reply Last reply Reply Quote 2
          • jcooperJ
            jcooper @r_gigante
            last edited by

            @r_gigante Perfect! Worked like a charm. Thank you.

            JOHN COOPER I TECHNICAL DIRECTOR
            PSYOP LA

            1 Reply Last reply Reply Quote 0
            • First post
              Last post