Hi Martin, it's because your <moi:DistanceInput> control is not closed. V3 and V4 differ on how malformed HTML is processed, V3 would scan ahead and see there is no end tag found and then close off the tag. V4 I believe adheres to what is supposed to happen which is that it puts the content after your unclosed tag as children of it and doesn't close it off automatically at its origin point.
You can fix it and make it work in both V3 and V4 by closing that tag like this:
Hi Brian, I haven't tried it myself but you might look at JSLint for JavaScript files. A checker for .htm files may be more problematic because it may say the custom moi: elements aren't standard and it also won't like that moi.css is implicitly added to every file.
re: semicolons - I believe semi-colons at the end of lines are officially optional in JavaScript so it should still run without those but it is good practice to have them.
Just load these files unzipped in the moi commands folder
and make a shortcut on it
write HatchItWithRotation or hatchItwithRotation or HAtchItwithRotation etc...but without space
or Press Tab and write HatchItWithRotation but without space
Hi dangerhu, are you on Mac or Windows and what version of MoI are you using? That will help me to give you more precise instructions for how to install and run this plug-in script.