AEChadwick Posted April 17, 2012 Share Posted April 17, 2012 I have finished a couple tools and I want to save them in a manner that will prevent meddling. Does anyone know a simple method to Lock or Encrypt scripts? I cannot find it in the developer reference. Thanks! ? Quote Link to comment
AEChadwick Posted April 17, 2012 Author Share Posted April 17, 2012 Hmm. I found instructions to encrypt a vectorscript at... http://download2cf.nemetschek.net/www_misc/2010/Vectorworks%202010%20Help/Data/15_Vectorworks/19_UsingScripts/Managing_VectorScripts.htm but they appear to be only for encoding script? The dialog box will not recognize my VSO file. Quote Link to comment
JBenghiat Posted April 17, 2012 Share Posted April 17, 2012 The short answer is to look in the VS Language guide, which is part of the help app: To encrypt a plug-in: 1.Select Tools > Scripts > VectorScript Plug-in Editor. In the VectorScript Plug-in Editor, select the plug-in to be protected from the editor list. 2.Use the following key combination, pressing the keys simultaneously: Macintosh Caps Lock+Shift+Option+Command Windows Shift+Ctrl+Alt 3.Click the Script button in the Editor. Confirm twice that the plug-in should be protected. One large thing to note -- encryption cannot be reversed, so make sure to duplicate your plug-in before you encrypt. If you use include files for your code, files with the .px extension will be pulled in to your plug-in while files with the .vss extension wil still be needed if you copy the plug-in to another installation. My personal workflow takes advantage of the batchencryption library that's included in the SDK. It allows you to write a VS that encrypts plug-ins, and you can point to a plug-in that is outside of your plug-ins folder (eg a duplicate copy). I've developed an Automator script to handle the whole thing and guarantee I'm never accidentally locking an original copy. Some day I'll have time to share the process. -Josh Quote Link to comment
AEChadwick Posted April 17, 2012 Author Share Posted April 17, 2012 Thank you, that is excellent. Just tested, it works exactly as you describe. (Honestly, I searched the Language Guide repeatedly, I clearly missed these instructions. I did find EncryptVSPluginFilePath as you mention http://developer.vectorworks.net/index.php?title=VCOM:VectorWorks:ISDK::EncryptVSPluginFilePath and was on the verge of attempting that process. I really appreciate you lending a different set of eyes to guide me along!) PS. looking forward to that automator workflow! ? Quote Link to comment
JoeBayLD Posted December 4, 2014 Share Posted December 4, 2014 After following the method above, I get "Settings file could not be read". It's looking for an XML. What is that XML for? 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.