CustomUI
 1-9  …  130-149  150-169  170-189  190-209  210-229  …  510-522

Previous
Next
 From:  BurrMan
6507.170 In reply to 6507.168 
Hi Max,
Can you help me with one edit I need to make?

For the path of a scripts directory has changed.

In the previous version, for the mods/ExtScripts.menu.htm there was a line like this to set a path to a folder:

var files = moi.filesystem.getFiles(moi.command.getOption('ExePath', false)+"\\commands", '*.js' ), scom = [];

Where "commands" is a folder to look in.....

The new version has this line:

var files = moi.filesystem.getFiles(moi.filesystem.getCommandsDir(), '*.js' ), scom = [];

How is this line modified to set a custom directory?

Thanks....
  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
6507.171 In reply to 6507.170 
Hi Burr, do you mean you want the custom directory to be one that's inside the installation folder like alongside "ui" and "commands" ?

If so you could do this:

var files = moi.filesystem.getFiles(moi.filesystem.getProcessDir()+"\\commands", '*.js' ), scom = [];

that should be the equivalent of the old one, it will get the location of the folder where MoI.exe is in, then stick \commands at the end of that, replace commands with what you need same as you did before.

- 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
6507.172 In reply to 6507.166 
And thanks Max for updating this to work for Mac users too!

- 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:  BurrMan
6507.173 In reply to 6507.171 
Hi Michael,
Yes that was it... It was the difference between getCommandsDir and the getProcessDir you posted. I was trying a few variations with crashing, but was only changing the "+\\folder" part....

Thanks for responding in on that....

Burr
  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:  Max Smirnov (SMIRNOV)
6507.174 In reply to 6507.170 
Hi Burr,

now you can set any directory you want (check the first post).
Update mods/ExtScripts.menu.htm
Create mods/ExtScripts.cfg.htm file with the following content:
MOI\commands
MOI\commands\myscripts
...
  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:  wastzzz
6507.175 
Thanks, works perfectly on new beta.
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:  BurrMan
6507.176 In reply to 6507.174 
Thanks max... i will check out the cfg file too. It sounds handy. I needed the other one because i setup 2 extension scripts with 2 buttons in the commandbar....
  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:  shayno
6507.177 
Thanks Michael for the latest Beta
In case anyone is interested , on the windows version to easily get my Moi beta back up and running with scripts and custom UI I do this

from the old beta version ( call it old ) I
Copy sidepane.htm from old UI into new UI (mine opens construct and transform at once).
Copy saveas.js and save.js from old commands into new commands overwrite the new ones (mine save a jpg also).

Copy all of the commands folder from old into the new commands folder but do not replace or overwrite anything in there.
This puts any commands you use like ringcircle etc in there

I copy the following so I know where they are.
Copy your moi.ini into the main moi directory of new
Copy your template file in there also
Copy your licience key into moi directory

Installation: of custumui.
- Backup /ui/CommandBar.htm (I just copy to the desktop)
- Extract CustomUI archive into the MoI directory

delete objects in new objects folder
Copy your objects from old objects file to new objects
copy snapshot.htm from old customui to new customui (mine is set to save as a jpg)
rename any parts of custom UI with a - in front that you don't want (I don't use the align buttons)
cheers
shayne
  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:  DannyT (DANTAS)
6507.178 In reply to 6507.177 
Hi Shayne, apart from your sidepane.htm, saveas.js and save.js if you uninstall the previous beta all custom scripts and custom directories will be left behind then it's just a matter copy and paste, the only thing to replace is Max's CommandBar.htm

-
~Danny~
  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:  yakas
6507.179 
Hi guys, I am getting this error. When it does load, there is nothing visually different about the UI?
Image Attachments:
Size: 43.3 KB, Downloaded: 156 times, Dimensions: 463x331px
  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
6507.180 In reply to 6507.179 
Hi yakas, that error probably means you are using an older beta release - that function that the error mentions is only in the most current v3 beta, the Jun-27-2014 version which you can get from here: http://moi3d.com/beta.htm

- 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:  yakas
6507.181 In reply to 6507.180 
Wow, that was fast. Works fine, woo hoo!
  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:  Max Smirnov (SMIRNOV)
6507.182 
Camera switcher for CustomUI :)


put .htm file in /ui/customui/ folder

right click - save camera position
left click - load camera position

EDITED: 7 Mar 2022 by SMIRNOV

  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:  shayno
6507.183 In reply to 6507.182 
Thanks Max thats neat
Is there any way that it can save the set positions on moi close , as it forgets what you set
cheers
shayne
  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:  Don (DON_CHEKE)
6507.184 In reply to 6507.182 
Is there additional instructions to get this to work? I could find no customui folder in the MoI ui directory, so i created one and put the htm file there but it does not show when I run MoI. What am I missing?

_________________________
Don Cheke
Visit: Textual Creations
  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
6507.185 In reply to 6507.184 
Hi Don, if I remember right I think you need to unzip the file into MoI's main installation folder.

That will then replace one of Moi's .htm files inside the \ui folder to show the additional UI, and that will also then create the CustomUI folder for you during that unzipping process since it's stored in the .zip file.

- 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:  bemfarmer
6507.186 In reply to 6507.184 
Post 1 has instructions. It can be easy, but for me it was hard to do it the first time, back with Moi3Betas.

Recently, I placed the CustomUI...zip file in the x86/Moi3 directory and unzipped it there. Easy :-)

- Brian
  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:  Don (DON_CHEKE)
6507.187 In reply to 6507.186 
Thanks Michael and Brian. I got it to install and work.

_________________________
Don Cheke
Visit: Textual Creations
  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:  BurrMan
6507.188 In reply to 6507.187 
The only thing you should watch out for with this type of "install", is Michael may make changes to something like "CommandBar.htm" and you are overwriting with something outdated...

You "Should" understand what is added in something like CommandBar.htm and just make that edit by hand, so you don't break your future installs.......

2 cents....
  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:  Don (DON_CHEKE)
6507.189 In reply to 6507.188 
Thanks, I probably won't use it anyway. I really just wanted to see what the camera switch did.

_________________________
Don Cheke
Visit: Textual Creations
  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

 

 
Show messages:  1-9  …  110-129  130-149  150-169  170-189  190-209  210-229  230-249  …  510-522