MoI discussion forum
MoI discussion forum

Full Version: CustomUI

Show messages:  1-9  …  170-189  190-209  210-229  230-249  250-269  270-289  290-309  …  510-522

From: Frenchy Pilou (PILOU)
30 Apr 2017   [#230]
After some tricky tests :)

Seems using Custom UI with the cool Kitbash by Chipp Walter (42 item) http://moi3d.com/forum/index.php?webtag=MOI&msg=8398.1
that Name of Image and file 3dm must be the same and in Uppercase!
Size of image seems have no incidence!


From: Frenchy Pilou (PILOU)
1 May 2017   [#231]
Edit!
After new tests!
Image name and file 3dm must have excatly the same name!
Case is sensitive!
From: Dreviou
24 May 2017   [#232]
Unfortunatelly I got error message like this when starting Moi after copying files to Moi folder. Win10, any idea how to solve this problem?

Image Attachments:
moiError.jpg 


From: bemfarmer
24 May 2017   [#233] In reply to [#232]
I would double check to see that the files are in the proper directories.
- Brian
From: coi (MARCO)
24 May 2017   [#234] In reply to [#232]
Are you using MOI v2 or MOI v3?
From: Michael Gibson
24 May 2017   [#235] In reply to [#232]
Hi Dreviou,

> Unfortunatelly I got error message like this when starting Moi after copying files to Moi
> folder. Win10, any idea how to solve this problem?

You'll get that error if you're using MoI v2, the CustomUI requires the final release version of v3 so to solve it you'd need to update to the current version.

- Michael

Message 6507.236 was deleted


From: Dreviou
24 May 2017   [#237]
That was it, v2, thanks guys! Now it works fine.
From: cnever
9 Jun 2017   [#238]
Hi

Does this still work? I get an error like the one above (for mac users) but I am on pc?

Thanks
From: Michael Gibson
9 Jun 2017   [#239] In reply to [#238]
Hi cnever,

re:
> Does this still work? I get an error like the one above (for mac users) but I am on pc?

Yes, it still works with the current version. You'll get an error if you're using an older version of MoI though.

- Michael
From: TheFlow
9 Nov 2017   [#240]
Thank you so much! :) I'm new to MoI and already got so good results quickly instead of modeling everything in Polygons! And your Addon makes it even better! :)
From: Max Smirnov (SMIRNOV)
8 Jan 2018   [#241]
Hi everybody! :)

CustomUI v2
http://moi.maxsm.net/media/files/CustomUI.2.0.beta1.zip
http://moi.maxsm.net/media/files/CustomUI.2.0.beta1.CommandBar.zip

This version works with MoI v4 beta Dec-12-2017 only!!! (and with all later versions of course)
Now CustomUI should be stored in AppData directory.

Installation (Win):
Extract CustomUI.2.0.beta1.zip to C:\Users\<username>\AppData\Roaming\Moi\
Make backup copy of existing C:\Program Files\MoI 4.0 beta Dec-12-2017\ui\CommandBar.htm
Extract CustomUI.2.0.beta1.CommandBar.zip to C:\Program Files\MoI 4.0 beta Dec-12-2017\ui\

Installation (Mac):
Extract CustomUI.2.0.beta1.zip to /Users/<username>/Library/Application Support/Moi/
Make backup copy of existing /Applications/MoI v4 beta Dec-12-2017.app/Contents/Resources/ui/CommandBar.htm
Extract CustomUI.2.0.beta1.CommandBar.zip to /Applications/MoI v4 beta Dec-12-2017.app/Contents/Resources/ui/
From: Frenchy Pilou (PILOU)
8 Jan 2018   [#242]
Cool adaptation!
Bravo!


From: mkdm
8 Jan 2018   [#243] In reply to [#241]
Wanderful!!

Thanks a lot Max!!

It works :)
From: moritzbock (MORITZ)
8 Jan 2018   [#244] In reply to [#241]
Hi Max,
Outstanding work. Thanks a lot - it works fine.
-moritz
From: Michael Gibson
8 Jan 2018   [#245] In reply to [#241]
Thanks for the update Max! That's great that it goes in AppData now.

I've been thinking that for the next beta how about if I have MoI look through some specific directory in AppData for any .js files and if any are found it will execute them. I'll also put in an empty named container element in CommandBar.htm by default that can be used as a target for where to insert controls. Then with that in place hopefully it wouldn't be needed to modify CommandBar.htm anymore and CustomUI would stay active between different releases.

A couple of issues are - what should the directory containing scripts to execute at startup be called, maybe just plain "startup" ? I guess there should also be a "commands" and "scripts" directory that you could make there as well. But then will having MoI look in 2 different commands directories for things cause problems since currently there's only one that is identified by moi.filesystem.getCommandsDir() ? And what should happen if there is a file with the same name in both places, which one should be actually loaded?

Also when should startup scripts run - probably just before the main window is shown?

- Michael
From: mkdm
8 Jan 2018   [#246] In reply to [#245]
Hello Michael!

I'm not Max but I write here my thoughts about your questions :)


1) "what should the directory containing scripts to execute at startup be called, maybe just plain "startup" ? I guess there should also be a "commands" and "scripts" directory that you could make there as well."

I would call it "autostart"

2) "But then will having MoI look in 2 different commands directories for things cause problems since currently there's only one that is identified by moi.filesystem.getCommandsDir() ? And what should happen if there is a file with the same name in both places, which one should be actually loaded?"

I would make another API called "moi.filesystem.getAlternativeCommandsDir()"
If there is a command with the same name in both places I think that the priority should go to the "standard" command folder,
or you could use a sort of "prefix" to force a command to be searched into a specific path.
For example "#something" could be used to execute the "something" command contained into the AppData "commands" or "scripts" folders,
while simply writing "something" will run the command from the standard location.

3) "Also when should startup scripts run - probably just before the main window is shown?"

Hmm....I think that startup scripts should run just immediately after that all the UI objects are accessible, just like the "document ready" of standard JavaScript or jQuery.


Ciao!
From: Michael Gibson
9 Jan 2018   [#247] In reply to [#246]
Hi Marco, thanks for your feedback!

> I would call it "autostart"

I was thinking "startup" might have some chance at being more familiar since that's what Windows uses for a similar mechanism.


> I would make another API called "moi.filesystem.getAlternativeCommandsDir()"

Hmmm, maybe. But if it's always in the same place in appdata it should be possible to get it by moi.filesystem.getAppDataDir() + 'commands\\' already.

I'm just not entirely sure what side effects having commands being a combination of 2 folders will have - stuff in CustomUI that builds the scripts menu by enumerating the files in the commands directory would need some adjustment. I'm trying to think of anything else that might be sensitive to it.


> If there is a command with the same name in both places I think that the priority should go to the "standard" command folder,

The good part about doing this is that when a standard command gets updated with something new, it will run that new one. So someone won't wonder why they aren't seeing the new feature that was just released. The bad part is that it won't be quite as easy to override built in commands but maybe that's for the best anyway. Having a special syntax to choose one over the other doesn't really help because it would only apply to a shortcut key and not buttons in the side pane for example.


> Hmm....I think that startup scripts should run just immediately after that all the UI objects are accessible, just
> like the "document ready" of standard JavaScript or jQuery.

Yeah when the UI is finished loading that's when the main window is shown so just before that would probably be good.

Thanks, - Michael
From: mkdm
9 Jan 2018   [#248] In reply to [#247]
You're welcome Michael.

Have a nice day.
From: Barry-H
9 Jan 2018   [#249]
Hi,
can Max's UI be installed in version 4 beta portable.

Barry

Show messages:  1-9  …  170-189  190-209  210-229  230-249  250-269  270-289  290-309  …  510-522