Can I convert several PYP files to one PYPV file?
-
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 -
Or maybe merge several PY files to one protected file?
Is this possible? -
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. -
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.
-
@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.
-
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. -
-
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. -
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.