MaxStudio Posted February 17, 2017 Share Posted February 17, 2017 I created a plugin object using python. The main code was pasted into the script editor via the plugin manager. I compiled the script and the plugin item works as it should. Now I would like to lock the script. I'm on a mac and recently made the jump from Vectorworks 2008 to 2016. In the past when creating a vector script I could lock it by holding down 'command' + 'option' + 'shift' + 'caps lock' (it was important that all external files had the extension .px) Now i'm in 2016 and scripting with Python. I only have 1 other file in addition to "import vs", which is, "import shapes" when i compile my script (shapes.py). It finds this file via the scripts options/environment paths. How do I go about locking or encrypting this plugin object? also, I do have a __init__.py file included in the folder that contains shapes.py Quote Link to comment
JBenghiat Posted February 18, 2017 Share Posted February 18, 2017 We've had a few discussions on the topic. In order to bundle python files in an encrypted script, you create an XML file telling the script engine where to find your imported files. Start with the posts here: -Josh Quote Link to comment
MaxStudio Posted February 20, 2017 Author Share Posted February 20, 2017 Thanks Josh. I will take a look at the previous discussion. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.