Show messages:
1-16
…
97-116
117-136
137-156
157-176
177-196
197-216
217-236
…
517-522
From: Frenchy Pilou (PILOU)
Cool!
The js file must have a particular syntax or we just put the lines script inside ?
Have you an example text with 2 lines scripts ?
From: BurrMan
Just paste your inline scripts into notepad then do a save and manaully type the .js extension.
Not sure what you mean by an example?
From: BurrMan
Ok Frenchy I figured out what you were asking.
You don't put "all your inline scripts" into 1 single file. You make a single js file for each one. Then, the name of that file is available to MoI's command entry area by typing the name, and Max's ui plug will also read them and display them....
So file "100GradientStyles.js" contains this text:
script: /* Make gradient styles */ var red = 12, green = 15, blue = 20; for ( var i = 1; i <= 100; ++i ) { var style = moi.geometryDatabase.addStyle(); style.name = 'Gradient ' + i; style.color = ((red%256)<<16) | ((green%256)<<8) | (blue%256); red += 2; green += 3; blue += 7; }
From: Frenchy Pilou (PILOU)
one file by script :)
It's not so bad!
But I am sure than Smirnov of Michael can make better! :)
From: David (BLEND3D)
Hi guys,
I just rebooted my aging Dell Precision 390 workstation from WinXP Pro to Win7 Enterprise (both 32 bit) since MS dropped XP support this month. I just added the Custom UI to my clean March MoI Beta install. Wow, this is so cool! I love MoI and you just made it better, THANK YOU to all involved!!!
Like some others in this thread I had some issues with things not working such as Snapshot and the "+" feature in the Object Lib. All of that has been resolved by running MoI in Admin Mode.
Only one minor issue is still lingers and that is the view-port nav buttons disappearing for a while and then coming back after a while. The "Reset all" button in the panel always works so this is not major but oddly I can't seem to nail down what will bring it back up. I may have to do a few operations to the model in a given view-port or hit the "Reset all" button and they will appear in one view. But if I leave that view to work in another view it will not come up in the active one.
If any one has a solution that would be very helpful.
Thanks,
David W.
From: bemfarmer
The custom UI has not been working correctly for the Mar-24-2014 MoI beta, on my windows7 computer.
I could not figure out why a newly added script would not be updated in the custom UI. It did occasionally update,
after the new file was also added to the previous MoI beta command folder. So it is not a cache issue.
I finally edited the ini file, accessed from the MoI program, and found that the file directory was set for the prior MoI beta.
After editing the ini file to the correct C:\Program Files\Moi 3.0 beta Mar-24-2014, the custom UI is working correctly again.
I do not know how the problem originated. Maybe from importing a .3dm?
The previous MoI beta is now uninstalled and deleted.
So maybe it is best to uninstall old MoI betas?
- Brian
From: Ronamodeler (RON_A)
Brian, I had to do the same. Took a bit to figure out the issue. You have to love computers...
Ron
From: Michael Gibson
Hi Brian,
> So maybe it is best to uninstall old MoI betas?
Normally I'd recommend keeping an old beta around for at least a couple of weeks after a new beta is out, just in case there are any new bugs in the new beta that get in your way.
For the case of CustomUI in particular you will need to edit its path to go the new beta.
- Michael
From: bemfarmer
Thank you Michael :-)
From: Max Smirnov (SMIRNOV)
All scripts have been rewritten using newest filesystem functions. Mac users now can rename and delete objects in the Object library.
Check the first post for update.
P.S. Added CustomUI version of the Dinos Script Palette script.
http://moi3d.com/forum/lmessages.php?webtag=MOI&msg=5993.1
From: Frenchy Pilou (PILOU)
Cool :)
Does the manual of the first page is changed ?
From: Max Smirnov (SMIRNOV)
Hi Pilou
I changed scripts only.
From: Frenchy Pilou (PILOU)
Thx for the info! So no new translation to make! :)
From: BurrMan
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....
From: Michael Gibson
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
From: Michael Gibson
And thanks Max for updating this to work for Mac users too!
- Michael
From: BurrMan
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
From: Max Smirnov (SMIRNOV)
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
...
From: wastzzz
Thanks, works perfectly on new beta.
M.
From: BurrMan
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....
Show messages:
1-16
…
97-116
117-136
137-156
157-176
177-196
197-216
217-236
…
517-522