- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to use Netfabb to set up a build for a single part where the laser power will change about 45 times at equal layer intervals throughout the part. For example, the first 20 layers will be at 250 watts, the next 20 at 300, the next 20 at 275, etc. I think there should be a way to use a LUA script to import a part, slice it into some number of slice stacks, and apply parameters to each stack, but I can't find a way to do it within the documentation.
I'm able to use a script to import an STL file without issue, but I haven't managed to get the script to do any actual slicing. Below is the result of my current attempts after the importing of the part into a tray.
Any help is appreciated!
Thanks,
Jacob
for layer = 1, lumped_layers do
-- Create slice n
slices[layer] = slice:createoffset(layer)
-- Set variable laser power
slices[layer]:addproperty ('power', layer_powers[layer]);
-- Set constant properties
slices[layer]:addproperty('markspeed', 1000)
-- slices[layer]:addproperty()
-- Add to tree
system:addslicetotree (slices[layer]);
end
Solved! Go to Solution.
