MoI discussion forum
MoI discussion forum

Full Version: Box Shell / Box Section script

From: stefano (LIGHTWAVE)
7 May   [#1]
Free script(s) in .ZIP file and demo moi file,
created with Michaels help to create "box sections" with total ease and speed...

Simply create a solid or "box". select the object(s)...run BOXSHELL
script selects the small edge faces, then goes to shell which acts as pass-through
as it selects two faces per box.

The other scripts are named for fast recall using command box typing (or shortcuts)
and these ones bypass the shell dialogue and set the distance or box section wall thickness as
like this, type "BOX10" for box section to be 1mm wall thickness...

1.0
1.2
1.5
1.6
3.2
(mm)

>> you can edit the last line in the .js script to create any box section wall thickness you want e.g.
moi.command.execCommand( 'shell soliddistanceinput=3.2 done' );

or

use boxshell to use the shell dialogue each time..








Attachments:
boxshell-boxsections.zip
moi3d_BOXSHELL_BOXSECTIONS.3dm

Image Attachments:
boxshell_1a.jpg  boxshell_1b.png  boxshell_and_boxshelldirect.jpg 


From: stefano (LIGHTWAVE)
7 May   [#2] In reply to [#1]
oh no i used caps in the thread name, anyhows, it also makes "tubes" and interesting 3d text shapes...








Image Attachments:
boxthecylinder.jpg  great2.jpg  moi-text-boxed.jpg 


From: stefano (LIGHTWAVE)
8 May   [#3] In reply to [#2]
Script V2 boxshell now has a nice tweak...it allows hard baked but editable
default values and rapid selection of these values using no mouse -I simply
use the keyboard UP DOWN and enter to select.

You can use mouse of course but its slower and you dont get the bonus.

Users can create their own default values by editing the .js file
line 70 or creating their own defaults in seperate command line or shortcuts.

I have set this one up for the common aluminium box section
thicknesses i might use...



Line 70 =

// No command line parameters given, use default.

cmdline = '1.6 3.2 1 1.2 1.4 1.5 2 3 6.35';



Need different defaults? Edit the cmdline = '1.6 3.2 1 1.2 1.4 1.5 2 3 6.35';

So, by changing line 70 with your own values when you type "boxshell"
or create a keyboard shortcut with just "boxshell" as the command
you can bring up all your default values AND you can also overwrite
the defaults by creating a new shortcut where the command or shortcut
might be:

boxshell 1 2 3 4 5


Attachments:
boxshellV2.zip

Image Attachments:
boxshellV2-1-2-3-4-5.png  moiBOXSHELLV2.jpg