ScriptSpot

Script

scripted glue

By 111 · Credited author: Andrei Kletskov (111) · 2007-03-19

Version
0.92
Date updated
2020-01-27
Votes
44
Download
Download
Description

this scripts does the same thing as a free plugin GLUE does, namely it glues objects to a surface. i've written this sript because i was tired of necessity of looking for new recompiled plugins with every new max release. and this script can do a bit more than original: it can align glued objects to normal, and you can glue along any vector, defined with tape helper object. more with newer version - vertex projection, eye ray, more precision

Attachments

Tags: glue, surface, put, down

Comments (25)

Script as modifier

cybertect · 2022-12-15

Would it be possible to make it a modifier ?

I often haven complex terrain, on which i place proxies.

In the working process it would be genious to have a modifier keeping the objects on level with the terrain....

THX

todor · 2021-06-08

Thank you, Good job!

x- and y-coordiantes moved when using ""Surf align"

3d-labor · 2021-06-02

Hello Andrej, thank you very much for your awesome script. Sadly I have a litte problem. When I hit "surf align" the x- and y-coordinates are moved a litte bit from the one of the original spline. When I hit "Glue spline knots" additional all is fine with these coordinates. But in that case the pivot remains in the position of the original object. What can I do? I want a accurate projection of the z-coordiante to the surface while the x- and y-coordinates should be exactly the same as before and he pivot x-axis should be orientated along the axis of the new generated spline. It would be fine if you could give me some advice. Sadly I found no script which does these step seperatly (aligning the pivot). Thanks in advance.

this move pivot z

id_ivan · 2021-06-02

$.pivot.z = $.center.z

Mehrdad995 · 2018-09-27

Amazing tool,
saves hundreds of hours of time
Thanks a lot <3

Despondo · 2017-07-13

Can you add spline interpolation like the Glue utility has? I'd like to use your script, but it lacks this critical feature.

what do you mean?

111 · 2017-11-07

subdividing the spline? you can do it with Spline Normalize modifier before glueing your spline.

multiple or selection set surfaces

syedsaudshahid · 2017-04-06

Great Script Andrei, Is it possible to have base object to select a list of surfaces option ?

new version 0.9

111 · 2011-09-15

http://andklv2.narod.ru/maxscripts/111_scriptedGlue_v0.9.ms

new features:
- offset (positive and negative)
- automatic selection of ground object (closest along shooting ray)
- keeping front direction of glued objects with "Surf. normal align" option (now objects do not rotate randomly)
- UI changed to be more compact

squeakybadger · 2011-08-05

is it possible to install this as a macroscript?

donvella · 2010-07-26

Thank you mate, awesome script you got here.

dutch · 2010-01-12

great script, just one small request: use the glued object local axis to project.

also, being able to select multiple base objects would be handy :)

rs3d · 2009-11-25

:-)

rs3d · 2009-11-25

How about making it animated by using a Scripted Controller? That would be really great!

111 · 2009-11-01

hm... the script processes EVERy object in selection, if you want to glue a group of objects, perent all of them to a dummy (or simply have a parent for all) and then just glue the parent object, all other will follow the parent.

 

and there is a newer version which supports perspective views and cameras

--- 111 ---

kris · 2009-07-18

I tested the script on a forest terrain by selecting ground plane and approximately 180 trees (each tree is agroup ; all 8 variations).What happens is that it uses only 1 variation out of the 8 + some elements of the group depart away from the others.Is it possible to work with groups and how ?

lunerjelly · 2009-06-23

Very good! I need it. Thank you very much!

trick · 2009-06-20

Nice tool !!

If only there was a Scatter tool like the native Max Scatter that would support multiple source objects and the "Distribute Using All Face Centers" option ;) Filling a theatre with people looking in the direction you want would be a breeze.

fajar · 2008-09-02

this is great script!! woow!! i`ve been loking it for a while!

kingmax · 2008-06-11

yeah~ good

111 · 2008-04-09

it is just TWO new words in the code :)))

 

--- 111 ---

Admin · 2008-04-09

Wow. Less than 2 hours later and a useful feature added. Great job!

nDman · 2008-04-09

Good but can't undo.