MoI discussion forum
MoI discussion forum

Full Version: CustomUI

Show messages:  1-15  …  156-175  176-195  196-215  216-235  236-255  256-275  276-295  …  516-522

From: bemfarmer
7 Dec 2014   [#216] In reply to [#215]
Hi Joe,

For Max Smirnov's CustomUI script, for Windows7, from Windows explorer directory, just remove (by renaming), the - (dash or minus) from in front of -ResetAll.htm file, in ...Program Files (x86)/ Moi3.0/ ui/ customui....path. (Your path may vary.)

- Brian
From: joe (JOEG171717)
7 Dec 2014   [#217] In reply to [#216]
perfect! thanks very much
From: ttype (STRUBE)
25 Feb 2015   [#218] In reply to [#182]
Can you perhaps add autocomplete for commands to the command bar? I have had a look at jquery and the functionality for autocomplete is completely implemented in there.

In fact, just a few lines are needed in order to set up autocomplete itself:
code:
<script type="text/javascript" src="jquery/jquery-2.1.3.js"></script>
<script type="text/javascript" src="jquery/jquery-ui-1.11.3/jquery-ui.js"></script>

And then it even searches "inside" words. Like for "ar" it suggests "PlanARSrf". Which is absolutely fantastic.



Unfortunately I failed putting it all together, because it is simply not possible to just add an input field to the commandbar.htm, because the menu popping up tries to resize the commandbar's part of the whole screen. (And, well, it feels like it would take weeks for me to figure out how the whole UI thing works. Especially since documentation is rather rare in MoI land.)

Image Attachments:
autocomplete.png 


From: Max Smirnov (SMIRNOV)
25 Feb 2015   [#219] In reply to [#218]
>>Can you perhaps add autocomplete for commands to the command bar?
Sorry, right now I have no time for this.
I prefer to use shortcuts and Ext.scripts addon. It's much faster than typing.
From: ttype (STRUBE)
25 Feb 2015   [#220] In reply to [#219]
>> I prefer to use shortcuts and Ext.scripts addon. It's much faster than typing.

Typing must be faster than searching sth. here:

http://moi3d.com/forum/lmessages.php?webtag=MOI&msg=6992.4

But I guess, I am going to try to add an input field to that menu and some jQuery that updates the table while I'm typing. Or so. I'll attach it somewhere here should I come up with something useful.
From: chippwalters
3 Sep 2015   [#221]
Hi Everyone,

Hope this helps any of those Mac Users who want to create a CUSTOM folder (say a Dropbox folder) for their Object Library files. I do this so that I only need to keep one folder on Dropbox and all the library files automatically show up both at work and at home.

You'll need to find the file: ObjLibrary.cfg.htm in the mods folder and edit it from:
Object Library;MOI\objects
to: (use the accurate path to your file. See HERE for how to properly find the file path on MacOS.)
Object Library;/Users/chippwalters/Dropbox/Moi/ObjectsDONTMOVE

NOTE the slashes are going the opposite way!
Next, you’ll need to change ObjLibrary.menu.htm. Search for this code:
code:
if ( moi.filesystem.fileExists (iconname) ) { document.write ('<div class="preview"><img class="icon" src="'+ iconname.split("\\").join('/') +'?'+randomID+'"></div>'); }

and replace with this code (note inclusion of 'file:///z:')
code:
if ( moi.filesystem.fileExists (iconname) ) { document.write ('<div class="preview"><img class="icon" src="file:///z:'+ iconname.split("\\").join('/') +'?'+randomID+'"></div>'); }

Now you should be good to go! :-)
From: Moriturimax
22 Nov 2015   [#222] In reply to [#3]
I tried installing it, put the commandbar.htm in the root directory of moi3d, and the customui folder in the root directory like it said above. When I start moi, nothing happens, no new menu items at the bottom, nothing different.

When the instructions say to extract it into the moi folder, does it literally mean into the root moi folder?

UPDATE: never mind, like a dumass I was opening the archive and manually trying to install it, when the directory structure in the archive showed me exactly how it was SUPPOSED to work... facepalm.
From: Carlo (CARLOBEE)
23 Dec 2015   [#223] In reply to [#54]
Hi MAX

The Line:


var Path = moi.command.getOption('ExePath', false) + "\\snapshots\\";

Doesn't exist in the 84 Snapshot.html file.

The closest thing seems to be this line::
vp.render(w, h).save(moi.filesystem.getProcessDir()+"\\snapshots\\"+time+"-["+vp.name+"].png");

Is that right?

If so, does this example look right to you?
vp.render(w, h).save(moi.filesystem.getProcessDir()+"F:\\Dropbox\\Work\\MOI3D\\snapshots\\"+time+"-["+vp.name+"].png");

Can't seem to make it work

Thanks
Carlo

Message 6507.224 was deleted


From: bemfarmer
13 Jan 2016   [#225] In reply to [#223]
Snapshot in CustomUI stopped working last year after reinstalling all Windows 7 programs to a new hard drive.
Previously it had worked. The snapshots directory is located alongside of "ui" and "commands."
To enable writing to Program Files (x86) \ MoI 3.0 \ snapshots, it was necessary to right click
on MoI 3.0, select Properties, Security, Edit, select my user name, and place a checkmark in
the write box, then apply. (Increases Administrator-like privileges)

Similar to using Michael's method here: http://moi3d.com/forum/index.php?webtag=MOI&msg=6507.171
I was able to create a snapshot2 directory alongside snapshot directory, but was unable to relocate it to AppData directory.
I modified 84Snapshot2.htm to 85Snapshot2.htm file with
vp.render(w, h).save(moi.filesystem.getProcessDir()+"\\snapshot2\\"+time+"-["+vp.name+"].png");
and also modified the end of the last line to ==">Snapshot2</moi:CommandButton>
Also need to rename the function name to "function snapshot2(w, h, button, shiftkey, ctrlkey)
as well as its call in the last line.

- Brian

Also added the snapshot and snapshot2 subdirectories to the file directory library for quick viewing access.
From: ndrakey
22 Mar 2016   [#226]
Is there a way to get CustomUi to work on Windows 10?

https://www.dropbox.com/s/vgs6cu0h454fwkg/test.png?dl=0
From: Michael Gibson
22 Mar 2016   [#227] In reply to [#226]
Hi ndrakey,

re: Is there a way to get CustomUi to work on Windows 10?

It does work on Windows 10 already, but it needs the final release of MoI v3 in order to run. From your screenshot it looks like your problem does not have anything to do with Windows 10, it's that you're running an older release of MoI which doesn't have the getUIDir() function that the error message is referring to.

- Michael

Message 6507.228 was deleted


From: Ced (FRACTIONALIST)
3 Mar 2017   [#229]
Balloons anyone? How to add mod your GUI with helpful tooltip commands:



Attachments:
sidePaneToolTipCode.zip

Image Attachments:
ModGui8.png  SidePaneToolTip.png 


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

Show messages:  1-15  …  156-175  176-195  196-215  216-235  236-255  256-275  276-295  …  516-522