Lattice

7 votes
Version: 
2.0
Date Updated: 
01/17/2013

Uses selected object to creates lattice/blob like objects.

Updated!

--V2.0--

Changed UI.
Changed globals to locals.
Added update function.
Added effects(ATM only 2, melt/grow), and a particle view opener/closer.
Changed the way the meshsmooth modifier is transfered from lattice to finished object, instead of deleting the first modifier and adding another meshsmooth, it copys the original, then adds it back.
Changed help rollout.
Changed selection, press the start button to start, then when finished, press it again.

 

 --V1.7--

Removed error with rollout. To manually fix script open it, go to line 82 and remove the "()" from the "filter:pickfilter()".

--V1.6--
Changed the random select function, thanks to barigazy.
Improved script, thanks again to barigazy.

 

--V1.5--
Added detection for Editable_poly objects.
Added low poly detection.
Added option for tessallating low poly objects.
Changed manual, ring, loop, grow and shrink selection options for quicker selection.
Fixed problem where the previous orginal object was used for the new lattice.
Allowed name changing for the orginal object.

Additional Info: 

Use:

Select a object.
Create.
Change the amount of pieces with the "Amount" spinner, change how much the parts melt with the "Melt" spinner.
Change the Smoothness, Thickness and Edges segments with the "Smooth", "Thickness" and "Edges segs" spinners.
Change the Color and Seed with the "Color" and "Seed" options.

When using "Selected vertices", "Selected edges" or "Selected faces" you can use the Selection tools to customize the lattice:

Start: Selects the object Stop: Ends Vertice/Edge/Face selection and hides object Random: Selects random faces within the choosen percentage Ring, Loop, Grow, Shrink: Ring/Loop-Grow/Shrink selection When you have finished creating the lattice, first choose what to convert it to: Poly, Mesh or Patch.
Then choose to keep/delete orginal object, and wheither or not to carry over the meshsmooth modifier to the new object.
Then press Commit, and the lattice will be converted to the choosen object type, and if the orginal object is kept, then it will be unhidden.

Effects:

Melt: Moves particles in choosen direction, you can change the speed, variation, divergence and seed.

Grow: choose when the particles start, and stop being created.

(More effects will hopefully be added in the future)

(To keep the effects, do not press commit, but stop editing, and close down rollout, so the particle system and lattice will be kept in normal state)

 

 

Examples:

 

note,

Only tested in 3ds Max 2012 x32


(Sorry, video has not been updated, and will not be for a while, or on other scripts, since the screen recorder I used to use no longer works)

Version Requirement: 
3ds Max 2012 x32
Video URL: 
AttachmentSize
lattice V2.ms23.41 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
brttd's picture

Updated - V2

I have updated it(been meaning to do this for a while, but never got round to it)
UI has been changed, the rollout is smaller, and the help/about rollouts have been moved outside of the main rollout, aswell as the about rollout been changed.
Effects have been added, only melt/grow at the moment, hopefully there will be more in the future. I am also going to be trying to create a tool to make the created object a proper lattice, possibly using a totally different script, or just using the selected faces option, with some way to make the selected faces ordered, without having to manually select them.
The way the meshsmooth modifier is transferred from the old object to the new have been changed, it is now copyed, so all parameters are transferred.
auto updating is now a function, so it is called whenever a parameter is changed, and the checkbox is checked.
I will probably not be updating this for a while, unless I have more effects, or a working "proper" lattice creator tool.

Note, finishing creation while using a effect will take the object at the current time, so I will also hopefully get a way to keep the deletion/creation of vertices when the lattice is convertted.

Also, thanks Michele :)

Michele71's picture

Very nice and helpful script

Very nice and helpful script :) One point to you ;)

brttd's picture

Error fixed

In V1.7 that error is fixed, to fix it open it up, go to line 82 and remove the () from the end of "Filter:pickFilter()".

luxxeon's picture

Syntax Error

I keep getting a syntax error when trying to run the script.

MAXScript FileIn Exception
---------------------------
-- Syntax error: at (), expected
-- In line: pickbutton pick "Select object" pos:[16,16] width:104 height:32 filter:pickFilter() t
---------------------------
OK
---------------------------

barigazy's picture

My pleasure ;)

My pleasure

;)

bga

brttd's picture

V 1.6

Thanks barigazy, I have updated the script.

barigazy's picture

send you a mail. thake a look

send you a mail. thake a look

bga

brttd's picture

Updated V1.5

--V1.5--
Added detection for Editable_poly objects
Added low poly detection
Added option for tessallating low poly objects
Changed manual, ring, loop, grow and shrink selection options for quicker selection
Fixed problem where the previous orginal object was used for the new lattice.
Allowed name changing for the orginal object
removed some globals

Overall the script has been improved, and there are (a bit) less globals

silencer77's picture

Seems very interesting, will

Seems very interesting, will check this on out!

barigazy's picture

+1

Very interesting idea for the script.
Thanks for sharing.

bga

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.