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

    PYP script doesn't show up in extensions

    Bugs
    2023 python
    3
    4
    1.2k
    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.
    • K
      kiesi
      last edited by

      I copied this SDK example to create a script. I changed the PLUGIN_ID value to my own unique identifier. This is where the script was placed:
      explorer_Z0v6CoPm7Q.png

      If the script's extension ends in .pyp, the script does not show up in Extensions -> User Scripts in C4D 2023.2.0.

      However, if I change the extension to .py, the script shows up, but then there's an error when loading it: OSError: cannot find pyp file - plugin registration failed

      I'd just like to get the example working, but it doesn't even show up unless the extension ends in .py.

      1 Reply Last reply Reply Quote 0
      • C4DSC
        C4DS
        last edited by C4DS

        A file with extension .pyp is not a script but a plugin.
        As far as I understand the script manager will only list scripts with extension .py
        The .pyp file you have should be located in the plugins folder, and should then show up in the Extensions menu of Cinema4D.
        You cannot make a plugin run from within the script manager.

        K 1 Reply Last reply Reply Quote 1
        • K
          kiesi @C4DS
          last edited by

          @C4DS

          Well that explains a lot. Thank you, it works now.

          1 Reply Last reply Reply Quote 0
          • M
            m_adam
            last edited by

            Hi @kiesi, just replying to confirm that what @C4DS is saying is true.
            If you need to have a plugin installed elsewhere you can add an additional plugin lookup path in the Cinema 4D preference within the Plugin category. Otherwise you can also execute Cinema 4D with the next argument g_additionalModulePath={YourPath} or define g_additionalModulePath as an environment variable to add an additional python lookup path.

            Cheers,
            Maxime.

            MAXON SDK Specialist

            Development Blog, MAXON Registered Developer

            1 Reply Last reply Reply Quote 0
            • maxonM maxon moved this topic from Cinema 4D SDK on
            • First post
              Last post