MoI discussion forum
MoI discussion forum

Full Version: The script for chain

Show messages:  1-10  11-30  31-50  51-70  71-80

From: bemfarmer
27 Aug 2013   [#71] In reply to [#70]
Thank you Burr. Maybe next winter for "skydrive" or some such.
- Brian
From: Michael Gibson
27 Aug 2013   [#72] In reply to [#71]
These particular files are super tiny though, like 3KB apiece, so they won't fill anything up for a long time...

Usually it's 3DM files with a lot of stuff in them that tends to fill up attachment space quickly. If you have a big 3DM file to share, that's what can be good to put on a file sharing service like skydrive or dropbox, etc...

- Michael
From: Mauro (M-DYNAMICS)
28 Aug 2013   [#73]
Thank you Brian ! :)
From: bemfarmer
28 Aug 2013   [#74]
If anyone wants to "hang" a chain, there is a catenary script on the forum, which works fairly well with a good radius guess.
I want to improve it by adding bisection, and re-examine the code.

- Brian
From: Bravlin
11 Nov 2018   [#75]
If i want "arraydir" command to start in "Extent, Count" mode, what Key script should i use ?
From: Michael Gibson
11 Nov 2018   [#76] In reply to [#75]
Hi Bravlin,

re:
> If i want "arraydir" command to start in "Extent, Count" mode, what Key script should i use ?

It's not possible currently because of the space character in there. I should be able to fix this for the next v4 beta though by making quote " " characters affect the parameter parsing for command parameters.

The current method breaks things into separate parameters just by spaces so it breaks that "Extent, Count" into 2 parameters instead of just keeping it as one.

I'll see if I can make both "mode=Extent, Count" or mode="Extent, Count" work.

- Michael
From: Bravlin
11 Nov 2018   [#77] In reply to [#76]
If key script with args is not available, maybe you can give us an advice on how to build simple .js plugins for this purpose ?
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-10  11-30  31-50  51-70  71-80