MoI discussion forum
MoI discussion forum

Full Version: The script for chain

Show messages:  1-17  18-37  38-57  58-77  78-80

From: Michael Gibson
11 Nov 2018   [#78] In reply to [#77]
Hi Bravlin, yes a hack that will work right now would be to make copies of the 2 files ArrayDir.js and ArrayDir.htm which are in the commands subfolder. Name the copies something like ArrayDir2.js and ArrayDir2.htm and that will then make a command named ArrayDir2 available.

Inside ArrayDir2.htm find line 33 which makes the mode dropdown, it currently looks like this:
code:
	<moi:Select id="Mode">
		<moi:Option value="Offset, Count" textid="ArrayDir mode Offset, Count" />
		<moi:Option value="Extent, Count" textid="ArrayDir mode Extent, Count" />
		<moi:Option value="Offset, Extent" textid="ArrayDir mode Offset, Extent" />
	</moi:Select>


That will default to the first one in the list, but you can add a default="" attribute to control the initial default, so you want it to look like this:

code:
	<moi:Select id="Mode" default="Extent, Count">
		<moi:Option value="Offset, Count" textid="ArrayDir mode Offset, Count" />
		<moi:Option value="Extent, Count" textid="ArrayDir mode Extent, Count" />
		<moi:Option value="Offset, Extent" textid="ArrayDir mode Offset, Extent" />
	</moi:Select>


- Michael
From: Bravlin
15 Nov 2018   [#79] In reply to [#78]
Thanks Michael. It helps a lot. Maybe you also have some guides to moi script or hints & tricks page ?
From: Michael Gibson
15 Nov 2018   [#80] In reply to [#79]
Hi Bravlin, there isn't very much on scripting documentation, what is available is here though: http://moi3d.com/wiki/Scripting .

I do have a fix for the next v4 beta where you'll be able to use " " characters in a shortcut key for values that have spaces in them.

- Michael

Show messages:  1-17  18-37  38-57  58-77  78-80