MoI discussion forum
MoI discussion forum

Full Version: ChainMaker script bug in Version 5.0 Beta Dec-1-2023

Show messages: All  1-13  14-16

From: bemfarmer
6 Dec 2023   [#14] In reply to [#13]
Hi Michael,

I cannot find a "moi_report___.zip".
Finally located a Temp directory at C:\Users\(my_comp_name\AppData\Local\Temp. But it did not have any zip files.

Clarification of behavior when running ChainMakerV5 in MoI Beta5 Dec1 2023:

Rigid checkbox checked means that Rigid is set to True. The individual chain links maintain their shape. The script is relatively fast, a second or two or three +/-.
When Rigid is unchecked, the individual chain links can be "bent" or have their shape "distorted", when the radius at an area of the rail curve is low, with respect to the chain link size.

For Rigid = True, the speed of the script is faster for shorter, less curved rails.
For Rigid = True, the speed of the script is a little slower for twisted links, than for non-twisted links. (about double +/-?)

For Rigid = False, the speed of the script for non-twisted links, for a half egg ovoid rail with 30 links, is about 5 seconds.

For Rigid = False, the speed of the script for twisted chain, can be very slow, e.g. 50 seconds, for a half egg ovoid rail with 30 links. (10 times longer to form the chain, than for non-twisted links.)
Interrupting MoI by pressing Update again, or Done, or Cancel, causes an hourglass to appear, and eventually a MoI message box "MoI ... is not responding, with option to close the program or wait for MoI to respond. MoI can then be closed, or waiting eventually causes the completion of the change in the chain.

So MoI is not really crashing. MoI just seems to be busy for a LOT longer (10X) when Rigid is False, and chain is to be twisted.

I assume the new fitting math is taking a LOT longer with Rigid False and chain is to be twisted.

Maybe the best solution is to set Rigid to TRUE all the time, in the code. I think that "Stretch" has not been used at all.
Chains usually do not "distort" for normal loads, so Rigid should not be False.

- Brian

I am not sure what the specific change that I made to the script to eliminate the residual offset link and its rotation, versus behavior in MoI V4.

I think that "WrapWithObjectList", (used twice) is still needed for some factories???
I do not know what change was made in MoI 5 to change this need???
I never did try any 3D curves :-)
From: bemfarmer
6 Dec 2023   [#15]
ChainMaker script for MoI V5 Beta Dec1 2023, with Rigid set to true, so chain links maintain their shape, and are not distorted.

- Brian

EDIT: See next post for correction.
From: bemfarmer
6 Dec 2023   [#16]
Thank to 3 corrections by MO_TE, the ChainMakerV5R scripts now works on MoI4 as well as MoI5beta.

Some commands require .item(0) variable suffix.
I did not change the .js and .htm file names this time.
One person may need to download the corrected zip for the corrected version...
I think that I will start to eliminate the usage of _ in front of Scripts.

- Brian

The script even works in MoI3. And very fast.
Add the script to the MoI3 directory in commands folder below Program Files (x86).
Create a Rail curve in MoI3.
Hit Tab, and type in the script name and hit return.
Select the Rail and Update.
Like in the old days before CustomUI...

In MoI V5 Beta, a corrected version with Rigid checkbox, showed the same times as previously reported.
(50 seconds to update to Twisted Link with Rigid unchecked.) This version is not posted.

Attachments:
_ChainMakerV5RMO.zip


Show messages: All  1-13  14-16