MoI discussion forum
MoI discussion forum

Full Version: Scripts installation

Show messages:  1-20  21-40  41-42

From: Lara (MALA)
9 Oct   [#1]
Inspired by a recent project I finally got around to installing the scripts. But I can't access them. I placed the scripts in the following folder, as specified in the installation instructions: C:\Users\info\AppData\Roaming\Moi\plugins
However, I can't launch the scripts. Where is my mistake?
P.S.: I feel a bit embarrassed about this, since apparently no one else has had any issues with it since 2018. At least I'm still within the ten-year window.




Image Attachments:
after script installation.png  P not found.png 


From: Lara (MALA)
9 Oct   [#2]
This the list of scripts I found and put into the command folder.


Image Attachments:
List of plugins I found.png 


From: Michael Gibson
9 Oct   [#3] In reply to [#1]
Hi Mala, usually they should be copied into %AppData%\Moi\commands, not "plugins" like you're currently doing.

There are some detailed instructions in the FAQ here.

The "plugins" is new in v5 and is a way for someone to distribute a more complex set of multiple scripts, you shouldn't put it in there unless there are some specific instructions to do so.

- Michael
From: Michael Gibson
9 Oct   [#4] In reply to [#2]
Hi Mala,

re:
> This the list of scripts I found and put into the command folder.

It should be "commands" (note "s" at the end), not command.

You need to put the contents of all those folders into the commands folder.

Most of those will have 2 files, one with a .js file extension and one with .htm file extension. Those 2 files need to get copied into the appdata commands folder. Directly into that folder, not into a child folder like you currently have.

- Michael
From: Lara (MALA)
10 Oct   [#5] In reply to [#4]
All available scripts - how to pick?
I have the feeling that the scripts in the screenshot aren't all the ones available.
I looked at
Max Sirnos´s Script Archive: https://moi3d.com/wiki/MaxScriptArchive
At resources page: https://moi3d.com/resources
Petr´s MoI Page: https://moi3d.com/download/scripts/PetrsMoiPage/PetrsMoiPage.htm
Pilou: https://moi3d.com/wiki/PiesMenuForMoi3D

How to get all available?
Mala

P.S.:
ok - just found BurrMan´s
https://moi3d.com/forum/index.php?webtag=MOI&msg=7841.6
https://moiscript.weebly.com/
From: Lara (MALA)
10 Oct   [#6]
Hi,
You mean the scripts should be placed there: Win-key + R:
%AppData%\Moi\commands

When I do that this path is opened on my Win11:
C:\Users\info\AppData\Roaming\Moi\commands

Something is wrong. No MoI folder in AppData.
In the folder "Roaming" - there is a MoI folder. Idea why?

Mala



Image Attachments:
Moi in Roaming folder.png  No MoI folder in AppData here.png 


From: Michael Gibson
10 Oct   [#7] In reply to [#5]
Hi Mala, Burr's archive is listed on the resources page: https://moi3d.com/resources

The link is named "Burr's script archive - collection of scripts posted on the forum".

- Michael
From: Michael Gibson
10 Oct   [#8] In reply to [#6]
Hi Mala,

> You mean the scripts should be placed there: Win-key + R:
> %AppData%\Moi\commands

Yes, as described in the FAQ question #1
quote:
On Windows you can find the Moi appdata folder by typing Win+R to bring up the Windows "Run" dialog and then type in:
%AppData%\Moi\commands

> When I do that this path is opened on my Win11:
> C:\Users\info\AppData\Roaming\Moi\commands

Yes, that's where you need to put them.


> Something is wrong. No MoI folder in AppData.
> In the folder "Roaming" - there is a MoI folder. Idea why?

Nothing is wrong, it is normal that the MoI folder is located under C:\Users\info\AppData\Roaming\ and not C:\Users\info\AppData\ .

The reason why is that there are 3 different ways in Windows to store user profile data. Just C:\Users\info\AppData\ is not intended by Windows to have data stored in an immediate sub folder, it is supposed to go inside AppData\Local , AppData\LocalLow or AppData\Roaming, depending on the type of data. The most commonly used and the one used by Moi is under AppData\Roaming.

If you want to know the details on the different types of user profile data there is some info on it here:
https://www.thewindowsclub.com/local-localnow-roaming-folders-windows-10

- Michael
From: Lara (MALA)
10 Oct   [#9]
Hi Mala, Burr's archive is listed on the resources page:
https://moi3d.com/resources

The link is named "Burr's script archive - collection of scripts posted on the forum".

- Michael

got a 404
From: Lara (MALA)
10 Oct   [#10]
As you can probably tell, I’m no expert when it comes to PC file structures and systems. I just want to know where the files are supposed to go. I’ve now copied in all the scripts I found, but I still can’t launch them. They ought to be in the right place by now—under C:\Users\info\AppData\Roaming\Moi\commands.

Do the file folders perhaps need to be unzipped:



Image Attachments:
file structure.png 


From: Michael Gibson
10 Oct   [#11] In reply to [#9]
Hi Mala,

re:
> got a 404

Sorry I had a typo, it's fixed now:

https://moi3d.com/resources

- Michael
From: Michael Gibson
10 Oct   [#12] In reply to [#10]
Hi Mala,

re:
> Do the file folders perhaps need to be unzipped:

The answer is in the first 2 sentences of the FAQ, please read it:

FAQ #1, How to install a plug-in script.

Also it can be helpful if you change a Windows setting so it will not hide the file extensions:
https://www.howtogeek.com/205086/beginner-how-to-make-windows-show-file-extensions/

- Michael

Message 12126.13 was deleted


From: Lara (MALA)
10 Oct   [#14]
Hi Michael, thanks—I don't think I have issues with the file extensions; I can see whether a file is .html or .js.
New - I moved the HTML/JS files from the folders into the commands folder, but I'm still having problems. When I launch MoI, I get the error message I’ve attached, and I still can't run the scripts within the program.


Image Attachments:
file structure.png  script error while starting.png 


Message 12126.15 was deleted


From: Lara (MALA)
10 Oct   [#16]
Thanks, Zooen, for your efforts. However, I fail to see what the organization of the displayed file structure has to do with the fact that the script folder (or "commands" folder) cannot be launched from within MoI. Are we—or rather, am I—talking at cross-purposes?

Image Attachments:
file structure.png 


From: Michael Gibson
10 Oct   [#17] In reply to [#14]
Hi Mala,

re:
> When I launch MoI, I get the error message I’ve attached, and I still
> can't run the scripts within the program.

You will get that error message on the program startup if you have placed the _Voronoi.js file in the %AppData%\Moi\startup folder.

It is not intended to be used as a startup script, it is meant to be copied into the commands folder.

If you delete the _Voronoi.js file from the startup folder that error message should stop being shown on program startup.

If you have got _Voronoi.js and _Voronoi.htm copied into the commands folder, how are you trying to run the scripts?

- Michael
From: Lara (MALA)
10 Oct   [#18]
Hi Michael, Voroni - Iremoved it > no more error message. Thank you.
A problem persists, however: when I click on "Scripts" in the bottom bar, the scripts in "Commands" are not triggered. Also, the "Scripts" entry appears twice.
From: Michael Gibson
10 Oct   [#19] In reply to [#18]
Hi Mala,

re:
> A problem persists, however: when I click on "Scripts" in the bottom bar, the scripts in "Commands" are not triggered.

When you say "not triggered" do you mean they are displayed but don't do anything when you pick one in the menu?

Or do you mean they are not displayed in the scripts menu at all?


> Also, the "Scripts" entry appears twice.

If you look the %AppData%\Moi\startup folder, do you have 2 files there named something like "80 Scripts.js", and "81 Scripts Full.js" ?

If so then delete one of them so you won't have 2 scripts buttons on the bottom bar.

I think the "full" one also displays all regular built-in commands as well.

- Michael
From: Lara (MALA)
11 Oct   [#20]
Thanks Michael, I removed "80 scripts" > it now appears only once in the GUI. However, just like the "Light" script, it doesn't open scripts from the "Commands" folder; a small black-and-white area just keeps appearing instead.
What is still wrong there?
Mala





Image Attachments:
80 scripts deleted - result GUI.png  script Light also no function.png 


Show messages:  1-20  21-40  41-42