MoI discussion forum
MoI discussion forum

Full Version: CustomUI

Show messages:  1-2  …  143-162  163-182  183-202  203-222  223-242  243-262  263-282  …

From: Michael Gibson
28 Nov 2014   [#203] In reply to [#202]
Hi Jay, I'm not sure where the snapshot script is coming from, is it on the scripts menu that pops up?

Is it a custom script that you have added in yourself or something like that?

- Michael
From: Jay (JAYGEE)
28 Nov 2014   [#204]
No, I just installed Max' CustomUI.
As in the first Post described:

"Snapshot
-------------
With this addon you can make a snapshot of last clicked viewport.
Resolution is fixed: 1600x1200
Left click - grid is visible
Right click - grid is hidden
Shift + click = resolution x 2
Ctrl + Shift + click = resolution x 3
Snapshots will be saved to "snapshots" directory."

LeftClick and RightClick on the button work fine.
Combination with Shift or Ctrl+Shift works not and my Backgroundcolor stays white.
From: Michael Gibson
28 Nov 2014   [#205] In reply to [#204]
Hi Jay, I took a quick look and from what I can see the resolution is getting so high with the x2 and x3 options that the render mechanism would consume a quite large chunk of video memory in order to be able to function and that is failing for you.

What type of video card does your machine have, does it have a lot of video memory available on it?

It's also possible that the mechanism MoI uses for running on the Mac is not able to use the entire amount of your video memory and trying to use some unusually large giant block of it is failing.

When the render call fails, that probably generates a script exception and then the rest of the script that does the cleanup stuff for restoring background colors and such does not run, that's why your screen stays white.

- Michael
From: bemfarmer
28 Nov 2014   [#206] In reply to [#204]
I tried out all 4 snapshots with a curve and points.
The first two looked very good.
The last two were huge files, and were badly faded. The points are tiny, and almost invisible.
(On Windows 7)

- Brian
From: Michael Gibson
28 Nov 2014   [#207] In reply to [#206]
Hi Brian, yeah currently there isn't any way to scale the display of points up dynamically like you would want with a very high resolution screen render.

The points are drawn based on bitmaps in the \ui sub-folder: Point.png, Point_selected.png, Point_transitionfromselected.png and Point_transitiontoselected.png .

You can modify the point size in a permanent way by changing those bitmaps, if you make a larger bitmap it will make the points larger too. But since they are not composed dynamically there isn't any way to just temporarily change them only for the render itself.

It can be possible to avoid the curve display from getting fainter by adjusting the script to make the setting for mio.view.lineWidth to be larger when doing a higher resolution capture, right now the script only seems to increase it up to 2 pixels in size, it probably needs to go more than that for the higher density ones.

- Michael
From: bemfarmer
29 Nov 2014   [#208] In reply to [#207]
Thank you Michael.
No complaints here, just a new, for me, observation :-)

- Brian
From: Jay (JAYGEE)
1 Dec 2014   [#209]
Hi Michael,
I've got an iMac with a NVIDIA GeForce GTX 780M 4096 MB.

By the way, maybe there is a discussion somewhere:
If I got too many objects writing out a .pdf or .ai it is running out of memory.

Copy/Paste with a graphic-program (Sketch):
Sketch -> MoI = ok
MoI -> Sketch = false
From: Michael Gibson
1 Dec 2014   [#210] In reply to [#209]
Hi Jay,

> I've got an iMac with a NVIDIA GeForce GTX 780M 4096 MB.

Normally that should be plenty, but it's possible that the mechanism that MoI uses for running on the Mac is preventing it from accessing the full amount of video RAM and limiting the resolution that you can use for the screen render.


> By the way, maybe there is a discussion somewhere:
> If I got too many objects writing out a .pdf or .ai it is running out of memory.

What do you have for the "Canvas megapixel resolution" on the PDF/AI export options dialog? If you've set it above 30 please try resetting it back to the default value of 30 and see if that makes any difference.

- Michael
From: Jay (JAYGEE)
1 Dec 2014   [#211]
Thank you very much. Restart solved the problem. Work great!
From: mikebres
6 Dec 2014   [#212]
Great Job!

What do I need to do to get the Shortcut menu to work? All I get is an empty dialog when I click it.

Thanks
From: Michael Gibson
6 Dec 2014   [#213] In reply to [#212]
Hi Mike,

> What do I need to do to get the Shortcut menu to work? All I get is an empty
> dialog when I click it.

I think you need to mark which shortcuts you want to appear in the list by putting in a ! character inside of a comment in the shortcut.

See the instructions on this other shortcut menu for more explanation:
http://moi3d.com/forum/index.php?webtag=MOI&msg=5993.1

- Michael
From: mikebres
6 Dec 2014   [#214]
Ah, perfect. Thank you very much.
From: joe (JOEG171717)
7 Dec 2014   [#215]
i am using your custom ui. i was wondering how i might go about adding the 'reset all' button to the bottom command bar alongside object library, script, snapshot and the like.

thanks

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

Show messages:  1-2  …  143-162  163-182  183-202  203-222  223-242  243-262  263-282  …