Page 2 of 4
Re: Minor exporter update
Posted: Sun Feb 26, 2012 6:54 pm
by C3Design
So Sam,
A good New Year to you! I have found that the latest updates to RHino have seemed to done something to your Octane render plugin. I get VB scripting errors regardless of which version you have posted here. I had seen others reporting this lately and you seemed to have a hunch on that, any progress on getting functionality back for us Rhino users? I'm sure it is hard top keep up with McNeel with the pace that they are keeping on V5 updates, but I'm getting the same problems in V4 now! Please work your magic if at all possible. It seemed that there were some members here that were inclined to inherit the Rhino Plugin development from you, but I haven't seen any progress on that front. I'm so spoiled by Octane and your plugin, but am making do for now by exporting directly as an obj from Rhino and then opening Octane. Hope you find the time to look into these issues. Best wishes for a productive New Year, Jody
Re: Minor exporter update
Posted: Mon Feb 27, 2012 6:37 pm
by SamPage
Hi Jody,
Sorry this is such an issue for you, it has been a bit vexing for me as well as it seems to be happening on everyone's machine but mine. Can you do me a big favor (and a bit of work) and try and load these script files manually to see where the error might be? Attached are 6 files. What I would like you to do it to unzip then and save them where you want them to live on your hard drive. Then in Rhino go to Options -> Plug-ins look for the RednerOctane plug-in. Either load protect it (clear the Enabled check mark or right click-> Load protect), or navigate to where the *.rhp file is living and change its name to something like RenderOctane.OLD. You can find where it lives by going to Rhino Options -> Plug-ins, select the RenderOctane plug-in, and hit Properties. At the bottom of the window that opens you should see under Technical information a File name which will give you the full path. You will probably have to change the name while Rhino is not running.
Now once you are sure that the RenderOctane plug-in is not loading (try running RenderOctane and make sure you either get an unknown command, or a RhinoScript type mismatch error on line 1 Char 0) we can start loading these script files manually. With the files attached unzipped to where you want them to live, run LoadScript in Rhino. Click the add button, and select the *.rvb files that you saved to your hard drive, one by one (order doesn't matter at this point). Once you get all six added to the load script dialog, we can actually start loading them. If you are not still in the load script dialog, call loadScript again, in the list of scripts to load, we need to load functions.rvb first. Call LoadScript again, then load the remaining five *.rvb files one by one.
Now the scripts are loaded, you can run them using RunScript. RenderOctane or RenderOctaneQuiet will be the ones you are looking for in that list.
Note that this is just a temporary test. If you close and reopen Rhino, you will have to go through the business of loading the scripts manually again (although they should still be in the LoadScript dialog without having to add them). If it does work, I can go over making this a more permanent solution, and hooking them up to the toolbars so it would work just like the old plug-in (and it also will help me narrow down if the error is in the monkey compiler or the .NET distributable, or something similar).
Re: Minor exporter update
Posted: Mon Feb 27, 2012 7:30 pm
by C3Design
Hi Sam,
So far so good with this fix, things are working as expected from the Run Script command once loaded as you describe. Won't respond to the toolbars but I guess that wouldn't be expected from the workaround. Thanks so much, I know you're a busy guy. Let me know if this helps you sort out a real fix, but for now I'm back in business! Fast response, fast fix, you would make a great McNeelie, Pascal would be proud. (Uncle Bob too...) Thanks again, Jody
Re: Minor exporter update
Posted: Mon Feb 27, 2012 7:50 pm
by SamPage
Well, I think they would be more proud if it just worked
OK, now to make this a little more useable (all of the below is with only one instance of Rhino running):
Rhino Options -> RhinoScript:
Click the dotted box with a little sparkle on upper left (tool tip 'New')
Add the *.rvb files you unzipped from the previous message. Add all six, and be sure when you are done that functions.rvb is at the top of the list (so it loads first)
Rhino Options -> Aliases:
Create the following new aliases (remove quotes)
Alias: "RenderOctane" Command macro: "_NoEcho ! _-RunScript RenderOctane"
Alias: "RenderOctaneQuiet" Macro: "_NoEcho ! _-RunScript RenderOctaneQuiet"
Alias: "OctaneOptions" Macro: "_NoEcho ! _-RunScript OctaneOptions"
Alias: "OctaneClearOptions" Macro: "_NoEcho ! _-RunScript OctaneClearOptions"
Close Rhino, then restart and see if your toolbars now work. Let me know how it goes.
Sam
Re: Minor exporter update
Posted: Mon Feb 27, 2012 9:23 pm
by C3Design
Not sure if I've done this right, Sam. I'm able to create the Load Script part, and then do the thing in the Aliases, but when I re-open the toolbar doesn't seem to make the connection or call up the script. I took these ss's to illustrate. Wasn't sure about the 'remove quotes' instruction...
Re: Minor exporter update
Posted: Mon Feb 27, 2012 9:49 pm
by SamPage
Ah, OK, yeah the Aliases got a little crossed. So where you have
o6 replace that with RenderOctane, where you have RenderOctane" Command macro:"_NoEch... replace that with _NoEcho ! _-RunScript RenderOctane
and continue with o7 through o9.
Re: Minor exporter update
Posted: Mon Feb 27, 2012 10:10 pm
by C3Design
Thanks Sam!
I know little about scripting, so thought I would be using a keyboard shortcut to invoke these commands so I used the o6 and so on not realising the way you link this stuff together. Works fine now and I've learned something about how clever this sort of stuff is. Thanks a ton, I'll try and not bug you for a while at least... How does stuff like this get broken with Rhino updates? Forget it, I'd never understand... Hope they are aware at McNeel. I just tried an old script for 'BoxFrame' and get the same sort of errors so I guess it isn't just your scripts affected. Your the best hope for the Rhino/Octane link, have any of the other guys that have expressed and interest made any progress?
Appreciate your quick response, Jody
Re: Minor exporter update
Posted: Mon Mar 26, 2012 4:16 pm
by gmillas
Hi all . And thanks Sam for the good work.
For what is worth ia made a minor change in the plugin to avoid the vb dificulty to execute external functions.
Thanks again Sam for the good work..
Re: Minor exporter update
Posted: Fri Apr 06, 2012 6:31 pm
by gmillas
I have add and a new toolbar for the Rhino v5
Re: Minor exporter update
Posted: Thu May 31, 2012 7:04 pm
by justix
gmillas wrote:I have add and a new toolbar for the Rhino v5
Tried this in the new beta but it just does not work? If I call the command through te command line it does but not the toolbar...any tips?