Keep 3DLuVr online!
3DLuVr Logo
Sections
Articles
 From the Real World
 Digital Painting Series
 Featuring of...
 On the Bookshelf
Tutorials
 3ds max
 LightWave3D
 Softimage XSI
 Rhinoceros 3D
 Video Tutorials
FunZone menu
 I always wanted to be
 Talk to an employer
 Why Ask "Why"
TechZone menu
 Hardware Reviews
 Software Reviews
 Benchmarking
 Q&A, Tips & Tricks
UserZone menu
 The Artist Sites
 15 Min of Fame
 Request an Account
 Current Assignment
 Sponsors & Prizes
 Make a Submission
 Voting Booth
 Competition Rules
About menu
 Mission Statement
 Policies
 Advertising
 Comments
 Poll Archive
 Links
 How to IRC
 Donations
Login
Log in to be able to post comments to the news items, forum posts, and other facilities.
Username: 
 
Password: 
Not registered? Register!     Lost Password?
Poll
 Your New Year`s Resolution is...
Gain employment
Stop smoking/drinking/etc
Get back in shape
Find the meaning of life
Conquer the World
Absolutely nothing

    Poll Results
Comments
Want to leave us a comment about the site or in general? Click here to access the form.
ArtZone Heading
Link Object to a Vertex
Added on: Mon Aug 14 2000
Page: 1 2 3 4 5 6 7 8 9 10 

Save it and hit Ctrl + E and try it out. You finished Script should look like LinktoVert.ms.
If you are having troubles make sure you have one vertex selected when you hit "get vert" button.
I also included LinktoVert-Helper.ms in the zip file from the beginning of the article.
This is the same script just with extra stuff added to show you what groups do what.



===========================================================

Used Functions list:
These are all built in functions that I used.

NewRolloutFloater "Name of Floater" width height | Creates a floater
Rollout Name_of_Rollout "Title of Rollout" ( ........... ) | Creates a rollout
addRollout Name_of_Rollout Name_of_floater | adds a rollout to a floater
group Group_Name "title of group" | makes a group with that title
label Label_Name "text" | Puts text onto the rollout
if This do That | tests something and if it works do that
getvertselection object | gets the vertex number of the currently selected object/vertex as an array
getvert object vertex_number | returns the position of that vertex number of that object (x,y,z)

Further Reading and Explanations:

Although the MAXScript help file is very resourceful it is lackinging in useful examples.
So to see why I did certain things search for the following things and read up.

For information on the proper placement and structure of you script:
For example, why I defined the utility rollout first, then the buttons, then the "on this do that" section read this in the MAXScript Reference:
Working with MAX > Utility Rollouts > Visibility of Locals, Functions, Structs and UI Items in Rollout Code

For information about controllers and access to them:
Working with MAX > Controllers and Keys > Controller Creation and Assignment.

 
� 1997-2024 3DLuVrTM (Three Dee Lover)
Best viewed in 1024x768 or higher,
using any modern CSS compliant browser.