Thanks @clement for pointing me to this post. This solved the issue I was having with the scripts failing when compiled.
I’m not sure how I missed this 2 years ago, but better late than never.
I’m compiling on my local disk, and can reproduce the problem on several workstations. My user account does have admin privileges.
Interestingly a similar error message (access denied) is reported when building plugins, in the cleanup step:
Compilation succeeds and the temporary folder created by the script compiler contains the plug-in, i.e. it’s not a big problem I’m experiencing. Still it would be nice to solve this.
On another note: Have you thought about open sourcing the script compiler? I would contribute to it.
I have tried it, but it doesn’t work.
I will search some solution this weekend. I still don’t have very clear where is the problem. I only know that the file ‘.dll’ works correctly when the plugin is called from the python-editor and not from the file ‘.rhp’.
So after making the RHI out of zipped folder of the plugin I am testing I always get version 1.0.0.0 C:\Program Files\Common Files\McNeel\Rhinoceros\5.0\Plug-ins\MyPlugin\1.0.0.0
The version information needs to be compiled into the plug-in itself. The RHI system doesn’t have control over what version a plug-in is.
It doesn’t look like the compiler currently has support for setting a version. You would need to have the compiler generate the source files for you; add the version information and then compile with Visual Studio.
not sure if this helps, using the new compiler i put my plugin version information at the end of the start up message so i can at least check if updating the plugin worked or if the old version is still loading.
@stevebaer, i do miss the licensing and menu options which where available in the old compiler. Will something like this be considered in the future ?
Thanks Clement, that’s a great suggestion. What I was trying to figure out and test is how the *.rhi installer recognizes and always installs the latest plugin version, (per wiki instructions). Now can’t do it unless manually compiling as Steve suggested.
Since it is an anniversary of last activity on this bug report, I will try again and say that the current problem with compiled scripts not running inside transparent commands is quite a pain and makes a lot of compiled plugins over here much less useful… https://mcneel.myjetbrains.com/youtrack/issue/RH-31820
Hope for some love for this one in 2017 !