MoI discussion forum
MoI discussion forum

Full Version: A quick (and dirty) Script Palette script

Show messages:  1-20  21-40  41-44

From: Mindset (IGNITER)
25 Apr 2015   [#41]
>> works only at the first re-launch of Moi! Cool... :)
>> ...but not at the second re-launch! :(
>> And disappears from the Shortcut list!

Found another little trick:
Create copies for each category. For example one for spirals, '../ui/ScriptSpirals.htm'
Change Line 22 to utilize a different character, unique for each category, as the '?' had been suggested: title = line.match(/\/\*\?(.+)\*\//);

[Shortcut Keys]
Alt+1=script: /*!Spirals...*/ moi.ui.createDialog( 'moi://ui/ScriptSpirals.htm' );
Alt+2=_ArchimedeanSpirals_ /*?ArchimedeanSpirals*/
Alt+3=Logarithmic2D /*?Logarithmic 2D*/
Alt+4=EulerSpiralSlider /*?Euler Spiral*/
Alt+5=EulerSpiral3 /*?Euler Spiral v3*/
Alt+6=FrenetClothoid3D_RK2_v1 /*?Frenet Clothoid 3D*/Alt+DownArrow=Nudge Down Small
A=Join /*!Join*/
Alt+S=IncrementalSave /*!Incremental Save*/
Ctrl+R=ReBuild /*!ReBuild*/
Ctrl+Shift+S=ScaleArray /*!ScaleArray*/
G=SpurGearProfile /*!Spur Gear*/
z=script:moi.ui.createDialog( 'moi://ui/ScriptPalette.htm' );




This way, items from the first list can 'createDialog' for other sub-categories:



And since each category file parses the ini file separately, the process remains repeatable!!
Even though, there are still yet a finite number of key-codes available for listing.

Image Attachments:
List2.jpg  List_1.jpg 


From: Rogurt
28 Apr 2015   [#42]
Hello all,

I try to use that fine script with Moi 2.0 (Win7 64bit) but it just wont work. Giving me an error message (see attachment).
I made sure the ScriptPalette.htm is in ui folder NOT in Commands folder.

Can anyone help?

Regards
Rogurt


Image Attachments:
Screen 00018.jpg 


From: dinos
28 Apr 2015   [#43] In reply to [#42]
Hi Rogurt,

unfortunately i don't think this script will work with Moi 2.0
I've never used Moi2.0 as i'm on a Mac, but there was a big change from Moi2.0, which was using Internet Explorer, to Moi 3.0 which is using webkit.


Dinos
From: Michael Gibson
28 Apr 2015   [#44] In reply to [#42]
Hi Rogurt, that script is using some new functions that were added in for v3, so it requires v3 to run and won't work on v2.

- Michael

Show messages:  1-20  21-40  41-44