The script for chain
 1-17  …  38-57  58-77  78-80

Previous
Next
 From:  Michael Gibson
6087.78 In reply to 6087.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
  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:  Bravlin
6087.79 In reply to 6087.78 
Thanks Michael. It helps a lot. Maybe you also have some guides to moi script or hints & tricks page ?
  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
6087.80 In reply to 6087.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
  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-17  18-37  38-57  58-77  78-80