Full Version: CustomUI

From: BurrMan [#18]
 8 Feb 2014
To: ALL

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?

Reply


From: hep [#19]
 8 Feb 2014
To: ALL

Hi Max
30 works perfect ;-)

Reply


From: Tommy (THOMASHELZLE) [#20]
 8 Feb 2014
To: ALL

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

Reply


From: Max Smirnov (SMIRNOV) [#21]
 8 Feb 2014
To: ALL

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?

Reply


From: BurrMan [#22]
 8 Feb 2014
To: ALL

"""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.

Reply


From: mattj (MATTJENN) [#23]
 8 Feb 2014
To: ALL

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 . . .

Reply


From: Max Smirnov (SMIRNOV) [#24]
 8 Feb 2014
To: ALL

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. :)

Reply


From: bemfarmer [#25]
 8 Feb 2014
To: ALL

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

Reply


From: Max Smirnov (SMIRNOV) [#26]
 8 Feb 2014
To: ALL

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

Reply


From: Michael Gibson [#27]
 8 Feb 2014
To: ALL

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

Reply


From: Michael Gibson [#28]
 8 Feb 2014
To: ALL

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

Reply


From: DannyT (DANTAS) [#29]
 8 Feb 2014
To: ALL

The object library is a nice touch! a great feature for the Mechanical Engineer who does assemblies with common standard parts.

Thanks Max!

-

Reply


From: BurrMan [#30]
 9 Feb 2014
To: ALL

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.

Reply


From: DannyT (DANTAS) [#31]
 9 Feb 2014
To: ALL

Same thing here, have to set MoI to run as admin, now there's an extra 'OK' to click on.

-

Reply


From: raytownmike (HOPPER) [#32]
 9 Feb 2014
To: ALL

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!

Reply


From: raytownmike (HOPPER) [#33]
 9 Feb 2014
To: ALL

Disable all modules, etc.. how? Thanks

Reply


From: Max Smirnov (SMIRNOV) [#34]
 9 Feb 2014
To: ALL

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.

Reply


From: Max Smirnov (SMIRNOV) [#35]
 9 Feb 2014
To: ALL

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. ;)

Reply


From: hep [#36]
 9 Feb 2014
To: ALL

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

Reply


From: Max Smirnov (SMIRNOV) [#37]
 9 Feb 2014
To: ALL

Hi hep
Thank you very much for testing.
Does the previous version works good?

Reply


Show messages:  1-17  18-37  38-57  58-77  78-97  …  238-240

Reply to All

Back to thread list | Login

© 2017 Project Beehive Forum