Show messages:
1-15
16-35
36-37
From: Marbleman
Is this a bridge to far or is it possible to create other Hatch Fills as attached jpg......would be very handy!
James Elliott
Image Attachments:
IMG_2610.jpg
From: Michael Gibson
Hi James,
> Is this a bridge to far or is it possible to create other Hatch Fills as attached jpg
I guess it's possible, but would probably require quite a bit of work.
Someday I would like to have hatching and drafting type stuff set up directly in MoI but it will still be a while yet before I'll be able to focus on that.
- Michael
From: Martin (MARTIN3D)
Hi Michael,
I noticed that when I use my Hatchit script with V4 beta Nov-18-2017 the two check boxes are not showing.
code:
<html>
<head>
</head>
<body class="commandbody">
<div id="TitleContainer" style="width:100%; text-align:center;">
<strong>Hatch selected objects</strong>
</div>
<div id="InputContainer" class="commandoptions" style="width:100%; padding-top:0.75em; padding-left:0.85em;">
Line spacing
<br>
<moi:DistanceInput id="offset" value="2">
<br>
<br>
<moi:CheckButton id="left_right" default="true">Left to right</moi:CheckButton>
<br>
<moi:CheckButton id="right_left" default="false">Right to left</moi:CheckButton>
<br>
</div>
<moi:CommandDoneCancel />
</body>
</html>
Attachments:
HatchIt.htm
HatchIt.js
From: Michael Gibson
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:
code:
<moi:DistanceInput id="offset" value="2"/>
- Michael
From: bemfarmer
Lines 60 and 61 of .js are missing semicolons.
Runs on MoI4beta11_28_17 in top view, after making the 3 changes: / ; and ;
- Brian
As a general question, is there some kind of 3rd party debugger or interpreter checker program?
From: Michael Gibson
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.
- Michael
From: bemfarmer
Thank you Michael.
I'll try JSLint some time
- Brian
From: Martin (MARTIN3D)
Thank you Michael and Brian, I will update the script.
-Martin
Edit: I attached an updated version to post 7279.9
From: christian (CHRI)
Hi
Hatchit script works fine
i have find a trick to change the direction of the hatching
is it possible to add a parameter in the script to input the direction ?
Chri
Image Attachments:
HATCH.png
From: christian (CHRI)
NEW EXAMPLE
Chri
Image Attachments:
NEW EXAMPLE.png
From: Michael Gibson
Hi Chri, try this version I've modded Martin's cool script so it has a rotation parameter added.
- Michael
Attachments:
HatchItWithRotation.zip
From: christian (CHRI)
Hi Michael
Exactly what we need .
your are incredible.
Have a good day
Image Attachments:
HATCH.png
From: Frenchy Pilou (PILOU)
French version in no time! :)
Done :
https://moiscript.weebly.com/hachures.html
From: Frenchy Pilou (PILOU)
Seems working only on the "top view" faces's object! ?
From: Martin (MARTIN3D)
Yes, the closed shapes must be drawn in the top view and if you want to hatch several closed curves at once they must be all on the same Z plane.
HINT
You can hide all hatch lines In the Scene browser under Objects.
Or you can select and delete or color all hatch lines.
Thank you Michael for modding the script!
-Martin
From: Michael Gibson
Hi Pilou,
re:
> Seems working only on the "top view" faces's object! ?
Yes, that's correct, some usage notes earlier in this thread here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=7279.9
quote:
NOTE
The closed shapes must be drawn in the top view.
If you want to hatch several closed curves at once they must be all on the same Z plane.
- Michael
From: christian (CHRI)
Last example combine with command Make2D4Views
http://moi3d.com/forum/messages.php?webtag=MOI&msg=8041.1
Chri
Image Attachments:
CLAMPS.png
From: Frenchy Pilou (PILOU)
Very convincing!
From: dangerhu
Where can I find this feature?
If the filling surface is a surface, what can we do?
thanks!
From: Frenchy Pilou (PILOU)
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
https://moi3d.com/forum/get_attachment.php?webtag=MOI&hash=49a2a6271e520996f071e7324a59a40e&filename=HatchItWithRotation.zip
Show messages:
1-15
16-35
36-37