Save custom UI?

Next
 From:  mat10x
9121.1 
Hi guys,

Wondering if there is a way to save or export my Moi V3.2 custom ui set up. Would like to have it backed up.

Secondly, I was thinking of trying out V4 Beta...and would want to import my custom UI, scripts etc...without taking all the time to re-set up my custom UI.

Thx.

M
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9121.2 In reply to 9121.1 
Hi Mat, for backing up your v3.2 custom UI you'd want to make a copy of any files you have changed or added to MoI's default installation. It's probably easiest to make a copy of the entire application folder. The only thing separate from that is your moi.ini file, you can find where that is located at by going to MoI's Options dialog and clicking the "Edit .ini file" button inside the General section, a dialog will pop up showing you the path to the moi.ini file.

For V4 it's not generally possible to just directly copy over your V3 UI in place of the V4 UI because that would then miss any new things added in the V4 UI, and the UI structure of V4 is slightly different than V3. The main differences are that V4 uses the standard CSS flexbox for arranging things while V3 used the early Webkit specific and now deprecated flexbox which is similar but has slightly different property names. So there are a few changes with different property names used in moi.css although about 99% of moi.css is the same.

But you generally need to merge your modifications into V4 in the same way you applied them in V3, not just copy your entire V3 file right over in place of the V4 one.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mat10x
9121.3 In reply to 9121.2 
Hi Michael,

Dug up my old thread...

I updated my 2014 Macbook Pro to Mojave 10.14.5...and as a result...Moi v3.2 is running very slowly.

So I read on the forum here to downloaded the V4 beta...did that and Moi V4 Beta loads right up. Great. So now...I'm trying to put in Max Smirnov's "CustomUI.2.0.beta2.zip" folders...and I can't seem to get the Custom UI to work for V4. Tried to follow the steps and locations for the Custom UI folders in V3...but can't seem to get it to work.

Where do I put the "customui", "objects" and "startup" folders for V4beta?

Thanks!

M

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9121.4 In reply to 9121.3 
Hi mat, the setup for the CustomUI for v4 is different than for v3, it now goes in the appdata folder which is:
/Users/<username>/Library/Application Support/Moi/

> Where do I put the "customui", "objects" and "startup" folders for V4beta?

If I remember right all of these go in /Users/<username>/Library/Application Support/Moi/ - there will already be a startup folder in there so copy the contents of the CustomUI startup folder into the existing startup folder (/Users/<username>/Library/Application Support/Moi/startup).

Hopefully that will get you set up.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mat10x
9121.5 In reply to 9121.4 
Hi Michael,

Ah ha...got the Custom tool bar working. But a few issues...

1. "Object Library"...the stock objects (cube, sphere, surface) are not showing under that button in Moi V4. I tried to move the "Objects" into Startup but that didn't seem to make a difference.

2. "Scripts"...I see 2 scripts buttons...I put a few in the "Scripts" V4 "commands" folder from the Application Support/Moi/commands. Nothing showing in either "scripts" folder.

3. "Lighting" button...tried to copy in the LightingOptions.htm I use in V3...nothing showing under that button in V4.

4. It seems the Tool Bar menu name change trick does not work to make an option not visible on V4. I had to remove the option from the AppSup/Moi/Startup folder to get it off the tool bar. For example "26 HideLock" is visible but "-26 HideLock" is also still visible...in V3 with a name change it would not visible in the bottom tool bar.

I noticed that under the V4 "Commands" folder under "Show Package Contents", all of the scripts I've been using in V3 show up in that folder...but are not visible from the V4 "Scripts" tool bar buttons.

...and I noticed all my hotkeys from V3...are somehow in V4 without my putting them in there...which is great!

Also tried to restart the computer to see if that would fix some of these issues, no difference.

Screen shots attached of what I'm seeing under V3/V4 "Show Package Contents"/drive_c...vs what's in the App Support/Moi folders

Thx!

M
Image Attachments:
Size: 71.4 KB, Downloaded: 31 times, Dimensions: 282x668px
Size: 321.5 KB, Downloaded: 31 times, Dimensions: 828x766px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
9121.6 In reply to 9121.5 
Hi Mat,
For my Windows 10 MoI setup, objects, scripts, snapshots, and also customui are subdirectories along side of startup subdirectory, NOT contained inside of startup subdirectory.
(All of these are in my appdata/roaming (~= Mac applications) folder.)
(I do not have a mac.)
Your customui folder has the same contents as mine, but maybe your customui should be up one folder level?

Our startup subdirectories are mostly the same, but my customui is up one level. I do have 82 Snapshot.js as an entry in startup.

- Brian

(For MoI4beta, I cannot find LightingOptions.htm file in any MoI4 related folders.)

EDITED: 1 Jul 2019 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9121.7 In reply to 9121.5 
Hi mat, so looking at your screenshot there it looks like your problem is you've moved the customui folder inside of "startup", when it should be one level up.

So just to clarify - when you unzip the CustomUI.2.0.beta2.zip file there will be 3 folders contained inside it: "customui", "objects", and "startup".

These folders should be copied to the MoI appdata folder which is /Users/<username>/Library/Application Support/Moi/

So when you do that it means you should have this structure:

/Users/<username>/Library/Application Support/Moi/customui
/Users/<username>/Library/Application Support/Moi/objects
/Users/<username>/Library/Application Support/Moi/startup

One thing to note is there will be an already existing startup folder. The contents of the startup folder in the .zip should be merged into the existing one.


In your screenshot I see this folder structure:

/Users/<username>/Library/Application Support/Moi/objects
/Users/<username>/Library/Application Support/Moi/startup
/Users/<username>/Library/Application Support/Moi/startup/customui <<<<<<

So the one marked with the <<<< is not in the correct location.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9121.8 In reply to 9121.5 
Hi mat, for the LightingOptions one it seems that it is expecting to have a listing of different lighting modes saved in the moi.ini file already, I guess it would get populated by using the older lighting options dialog script. Or maybe from the old CustomUI in v3 maybe, something like that.

Maybe if you can run one of those older versions it can get the settings populated in your moi.ini file so that menu could work in v4.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mat10x
9121.9 In reply to 9121.7 
Ah, now it works! Scripts, Obj library and Lighting options are all visible now....but somehow the script names are coming from V3 (not functional)...since I haven't yet installed all my V3 scripts into the V4 commands folder...? I noticed V4 also has my V3 hotkey set up...automatically.

Next...is to separate out the "Draw Curve/Draw Solid" and "Construct/Transform" panel windows. Is it the same process in V4 as in V3?

Thanks Michael!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mat10x
9121.10 In reply to 9121.6 
You were right Brian to move the "customui" up one level. Works now.

The "LightingOptions.htm" I had put into the commands folder from a script. Thought I needed it for the "Lighting" button. Seems to work with and without it...not sure if it's linked to my V3 somehow...or built into V4.

Thx!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
9121.11 In reply to 9121.9 
Hi mat,

re:
> since I haven't yet installed all my V3 scripts into the V4 commands folder...?

Yes, you'll need to copy over any additional scripts that you added into the V3 commands folder.

But for v4 instead of copying them into the app's commands folder you can put them in the appdata command folder (/Users/<username>/Library/Application Support/Moi/commands) and the benefit to that is that new versions will find them in that centralized location and so you won't have to copy them around again after that.


> Next...is to separate out the "Draw Curve/Draw Solid" and "Construct/Transform" panel
> windows. Is it the same process in V4 as in V3?

Yup, you can use the same process for that, or also a newer method for v4 is you can put in a startup script (in the appdata/Startup folder) to do it, get it from:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8064.8

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All