Skip to content

zmechanic/LightWave_Plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Newtek LightWave Plugins

assemble-layers.py

Use for final part assembly from separate operations that stored on dedicated layers. Part can be assembled and re-assembled reliably every time change is made to any individual operation. As Modeler operations are destructive, iterative changes are very difficult to implement without time consuming rebuild of the final part assembly, especially if it consists of many steps. With this plugin part can be re-assembled in under a second with exact precision and repitability.

Part assembly is achieved by running the plugin that uses layers' names as a build instruction. Up to 100 parts can be assembled in one go, but can be easily changed in the plugin code.

The layer naming convention is:

  • Layer name can contain any text/description
  • Assembly instruction must be in curly brackets ({})
  • Assembly instruction contains step identifier
  • Steps execute in reverse from depth to root, e.g. {1.1.1}, {1.1.2}, {1.1.3}, ... then {1.1}, then {1}
  • When same step is used in multiple parts/sub-parts, steps can be listed semicolon ; separated, e.g. {1.1.2;2.1.3}
  • Operations are additive (copy-paste) by default
  • Substractive (cut-out) operation is done by adding - after operation ID, e.g. {1.1.2-}, also same for multiple parts, e.g. {1.1.2-;2.1.3-}
  • Layers nesting (parent setup) have no impact on the build, as I can't figure out how to get access to parent info from the plugin code.

Here's a screenshot of the potential setup:

image

Demo LightWave LWO file is also uploaded together with plugin to demonstrate the layer steps logic. Running the plugin with demo file should create 2 separate parts on 2 separate layers, that can be easily exported to STL file for slicing and 3D printing.

Open the model and run plugin:

image

Part 1 created:

image

Part 2 created:

image

About

Plugins for Newtek LightWave Modeler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages