MoI discussion forum
MoI discussion forum

Full Version: CustomUI

Show messages:  1-17  18-37  38-57  58-77  78-97  …  518-522

From: BurrMan
8 Feb 2014   [#18] In reply to [#17]
So on my win7, with the filesystem writing, I have to set "run as administrator" on MoI, or the object library wont work.

Is there any way the scripting could be changed to avoid this? Any way to set the privileges from within Max's environment?
From: hep
8 Feb 2014   [#19]
Hi Max
30 works perfect ;-)
From: Tommy (THOMASHELZLE)
8 Feb 2014   [#20] In reply to [#14]
Rhino really isn't the alternative I'm looking at. It has a relatively bad GUI (as most CAD tools seem to enjoy).
But I'm working with many 3D applications and there are IMO several well working solutions to this kind of problem.

Having a dropdown menu with all installed plugins wouldn't directly lead to GUI-mageddon. ;-)

It could be very simple with sub-menus created from file system subfolders, so you could have folders for Points/Curves/Solids/etc. put the respective scripts in there and have them show up in equally named submenus.
Just an example though.

I personally enjoy MoI 10 times more now with Max' script installed :-)

And I have totally zero problem if it will change somehow in 3 years...

Cheers,

Tom
From: Max Smirnov (SMIRNOV)
8 Feb 2014   [#21] In reply to [#18]
BurrMan,
it's very strange. I use MoI on win7 x64 with UAC on. And I always use it without administrator rights. Right now I started MoI+ObjLib in a sandbox environment with all administrator rights blocked. Everything is ok. I can create and delete objects. Maybe something wrong with your filesystem rights?
Did you noticed this issue with ObjLib only?
From: BurrMan
8 Feb 2014   [#22] In reply to [#21]
"""Did you noticed this issue with ObjLib only?""""""""""

I havnt tested the while thing yet. But since you said it should do that, then let me do some further tests. It could just be something in the method I copied things over.

It shouldn't be anything with my filesystem. But, I use MoI standalone, and HAVE copied/moved/copied the install folder around, which may have reset some of the default permissions on the folder.

I'll take a deeper look at it in a bit Max. Thanks for the heads up.
From: mattj (MATTJENN)
8 Feb 2014   [#23]
I tried to install on a mac running latest OS and all I get is a white MOI window with nothing in it. I dragged the 3 folders from the zip file into the drive_c/moi folder . . . . is there something i missed . . .
From: Max Smirnov (SMIRNOV)
8 Feb 2014   [#24] In reply to [#23]
Hi mattj,

Try this ways (step by step):
1. disable all modules in moi/ui/customui/ directory. run MoI.
2. disable moi/ui/customui/CustomInit.js (just rename it). run MoI
3. restore original /ui/CommandBar.htm, erase moi/ui/customui, moi/objects, moi/snapshots directories. wait for more information. :)
From: bemfarmer
8 Feb 2014   [#25]
A couple of remarks on installation and setup Windows7 pc, based upon my attempts at installation :-)
1. Placing the zip file in the MoI directory did not permit unzipping there. (Administrator privilege not yet invoked.)
2. Copying the unzipped files from elsewhere may work?, but see item 4.
3. Running 7zip on the zip file from a download directory, and selecting the MoI directory in C:\programfiles(x86)\MoI3.0betaNov-19-2013 did
permit extraction of the files, but, see item 4.
4. It was necessary to right click on MoI.exe and select "run as administrator," in order for the customUI folder to be found.
---Success---. It is not necessary to select "run as administrator" again.

- Brian
From: Max Smirnov (SMIRNOV)
8 Feb 2014   [#26] In reply to [#25]
Great!
Yes, at the first start CustomUI tries to determine absolute path of moi directory. If successful it stores the path in moi.ini.
So, if MoI has been installed to disk C, this script tries to access C:\
Of course this action will be blocked by UAC
From: Michael Gibson
8 Feb 2014   [#27] In reply to [#20]
Hi Tommy,

> I personally enjoy MoI 10 times more now with Max' script installed :-)

It's cool that it has made things so much better for you!

Are there some particular plug-ins that you are using very frequently for your work? Which ones are they?

- Michael
From: Michael Gibson
8 Feb 2014   [#28] In reply to [#21]
Hi Max,

> it's very strange. I use MoI on win7 x64 with UAC on.

Is this having something to do with using the Windows ActiveX Scripting.FileSystemObject ?

One reason why I put in built in methods for some of that stuff was not only for Mac support but also since Vista the built in FileSystemObject seemed to be locked down often...

So what is it that you are missing from the built in stuff, was it just a "directory exists" function in addition to fileExists or was it other stuff as well?

You can probably use the moi.filesystem.getFiles() method as a way to check for a directory being present, as long as you are expecting it to have at least one file inside of it. Something like:

var files = moi.filesystem.getFiles( 'c:\\somedir', '*' );

if ( files.length == 0 )
..... no files found in that directory.

- Michael
From: DannyT (DANTAS)
8 Feb 2014   [#29] In reply to [#1]
The object library is a nice touch! a great feature for the Mechanical Engineer who does assemblies with common standard parts.

Thanks Max!

-
From: BurrMan
9 Feb 2014   [#30] In reply to [#28]
Hi Max,
So yes, for me it's UAC keeping that initial look for the customui folder from completing. I can fix it by setting the run as admin property or turning UAC off.

Could you take a look to see if the suggestion by Michael will remove the limitation?

Thanks.
From: DannyT (DANTAS)
9 Feb 2014   [#31] In reply to [#30]
Same thing here, have to set MoI to run as admin, now there's an extra 'OK' to click on.

-
From: raytownmike (HOPPER)
9 Feb 2014   [#32] In reply to [#20]
I am on a Mac. Can you give me a little more help in installing your UI plugin? I can't seem to get it to work for me.
Thank you again!
From: raytownmike (HOPPER)
9 Feb 2014   [#33] In reply to [#24]
Disable all modules, etc.. how? Thanks
From: Max Smirnov (SMIRNOV)
9 Feb 2014   [#34]
Hi Michael!
>>So what is it that you are missing from the built in stuff, was it just a "directory exists" function in addition to fileExists or was it other stuff as well?
It would be great to get folowing filesystem functions:
moi.settings.getExePath() - returns absolute path to the program directory
moi.filesystem.dirExists(path)
moi.filesystem.deleteFile(path)
moi.filesystem.moveFile(path1, path2)
moi.filesystem.shellExecute(executable file, parameters) - I know this function already exists, but it can't start programs with parameters

>>moi.filesystem.getFiles( 'c:\\somedir', '*' );
Unfortunatelly it doesn't work.
From: Max Smirnov (SMIRNOV)
9 Feb 2014   [#35]
I wrote a new version of the CustomInit.js (win version)
Check the first post. All ActiveX functions are removed.

raytownmike,
Put "-" symbol at the beginning of the filename.
I wrote about it in the first post. ;)
From: hep
9 Feb 2014   [#36]
Hi Max
On mac, CostumUI is looking for Moi.exe but that is hidden inside the progrm pack Moi. it end up with that CostumUI is not launched
From: Max Smirnov (SMIRNOV)
9 Feb 2014   [#37] In reply to [#36]
Hi hep
Thank you very much for testing.
Does the previous version works good?

Show messages:  1-17  18-37  38-57  58-77  78-97  …  518-522