Rhino Script Compiler for Rhino5, second Beta

unhandled

(Steve Baer) #6

Hi Riccardo,
It is hard to tell from that error. Did you install .NET 4.5?


(www.cadwax.com) #7

Is it possible to include encryption similar to Dale’s video: http://vimeo.com/41879788 - Perhaps one encryption for all the scripts in a plugin.

Also, can someone give the address of the web page that is shown in this video.

thx
Keith


#8

Hi Steve,

I’ve first tried it without the .Net 4.5 just for testing and got the same error like Riccardo. After install of that update it works like expected. My Python Scripts now also work correct (without evoking EditPythonScript first).

Thanks for the update!
Jess


(Steve Baer) #9

David already added encryption by default

Another future goal is to generate a full C# project so you can edit and adjust whatever you want.


#10

Thanks.
I have just realized .NET 4.5 does not support my Windows XP SP3. It requires Vista to newer ones.


What can McNeel do to improve your development?
(Steve Baer) #11

Can you install .NET 4? The RHI building requires .NET 4.5 due to the zip file support in .NET 4.5, but I may be able to drop that feature for people running on XP.

As a side note, we are currently targeting Windows 7 as the minimum OS for Rhino 6.


What can McNeel do to improve your development?
#12

Yes, I already have the .NET 4 installed.
Ah, did not know that about Rhino 6. Looks like an end might come to my current PC.


(Steve Baer) #13

I’ll have to see how much effort is involved in making this run on XP. There is no way I’m going to be able to get to this for a few days at least.


#14

No pressure Steve.
Take your time.


#15

Hi Steve
Thanks , the compiler works like a charm
Ciao Vittorio


#16

Hi Steve

Will we be getting the means to create a menu structure like the old Rhino 4 Monkey compiler ?

Roger


#17

Hello Steave
there was no net framework4.5
is installed everything works out
thanks


#18

Does this support multi-python file to single package yet?


(Steve Baer) #19

You should be able to have multiple python files in a single compiled project.

I don’t think we have the ability yet to have python scripts “import” from neighboring modules in the same package yet. Is that what you are trying to do?


#20

I believe there was a first beta of the python script compiler that could handle the input from a single python file.

I would like to compile a python script that is split up into several python files and compile it to one project.


(Steve Baer) #21

Could you provide a very small python sample of what you are trying to do? I feel that I’m making some assumptions about what your goal is and don’t want to run off and code under the wrong assumptions.


(Steve Baer) #22

Custom menus in Rhino 5 are implemented in rui files. If you create a rui and package it with your plug-in, this should work.


#23

How do you create rui file (in order to have compiled scripts as pulldown menu items) ?


#24

Example:

Calculation.py
CalculationMain.py <- contains main and calls functions in Calculation.py

Result:
Plugin when run calls main in CalculationMain.py which in turn calls function from Calculation.py


(Steve Baer) #25

Run the Toolbars command in Rhino. That will take you to an editor on the options dialog.