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
    • Register
    • Login

    Can I convert several PYP files to one PYPV file?

    Cinema 4D SDK
    2023
    3
    9
    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.
    • B
      bentraje
      last edited by

      Hi,

      Is there a way I can convert several PYP files to one PYPV file?

      If its not possible, how do you suggest protecting several PYP files? Do I just need to convert them to PYPV one by one?

      Regards,
      Ben

      1 Reply Last reply Reply Quote 0
      • B
        bentraje
        last edited by

        Or maybe merge several PY files to one protected file?
        Is this possible?

        bacaB 1 Reply Last reply Reply Quote 0
        • bacaB
          baca @bentraje
          last edited by

          Hi @bentraje
          I used to merge several .py source files into single .pyp file with simple script.
          And this can be later converted to a single .pypv file.

          But there're not many reasons to have single file for multiple plugins over multiple files with single plugin each.
          More likely issues with one of the plugin might affect other logic if they are in a single file.

          1 Reply Last reply Reply Quote 0
          • B
            bentraje
            last edited by

            @baca

            I'm guessing you are referring to just a simple merge of files with PYP convention.
            I'm thinking more of like a C++ project. Where it has a lot of files and can just be compressed/compiled to just handful of files for distributions.

            I have a lot of utility py files and I would like to keep separate in my development environment since I used it in several plugins.

            bacaB 1 Reply Last reply Reply Quote 0
            • bacaB
              baca @bentraje
              last edited by

              @bentraje exactly.

              I keep source files separately.

              And I wrote compilation script and config file, which just loads separate plugin files, scan for local dependencies to load them as well.
              So it combines everything into single .pyp file.
              For distribution it encrypts final compilation into .pypv file.

              Not much effort for this script gives development flexibility.

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

                Hi just wanted to confirm tat there is nothing built-in for that. I will add it to the backlog, but can't promise anything.

                Cheers,
                Maxime.

                MAXON SDK Specialist

                Development Blog, MAXON Registered Developer

                1 Reply Last reply Reply Quote 1
                • B
                  bentraje
                  last edited by

                  Hi @baca @m_adam

                  apologies for the late response.

                  thanks for the confirmation.
                  I guess I'll just do what @baca recommends which is to manually merge everything to one .pyp file. Probably some a bit debugging happening for imported modules but I guess that's for another thread.

                  Thanks again!

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

                    Hello @bentraje,

                    without further questions or postings, we will consider this topic as solved by Monday 05/06/2023 and flag it accordingly.

                    Thank you for your understanding,
                    Maxime.

                    MAXON SDK Specialist

                    Development Blog, MAXON Registered Developer

                    1 Reply Last reply Reply Quote 0
                    • B
                      bentraje
                      last edited by

                      Closing the thread with the following conclusion.

                      No native way to do it in C4D. Manually have to merge them then convert that one file to PYP.
                      So have to manage separate project files. One for source ones and one for merging several PY files.

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