|
|
|
Tell us what you think of the site.
|
Autodesk Media & Entertainment User Community
|
Autodesk® 3ds Max®
|
|
Autodesk® Maya®
|
|
Autodesk® Softimage®
|
|
Autodesk® MotionBuilder®
|
|
Autodesk® Mudbox™
|
|
Autodesk® ImageModeler™
|
|
Autodesk® Sketchbook® Pro
|
|
Autodesk® Smoke on Mac®
|
| move objects to a surface help
|
|
|
I am trying to get the move objects to a surface script (in the how to section) to work, but it seems to be doing odd things. For example, I have a terrain object and a spline object. I select 1 vertex of the spline object and tell it to move to the terrain, and my entire spline moves with it. 1. I wanted only the vertex to move, and 2. it doesn’t seem that the vertex moved to the terrain object. In fact, the vertex moved some distance past the terrain object. Has anyone else had this problem?
|
|
|
terzaghi 02 July 2008 08:18 PM
I am trying to get the move objects to a surface script (in the how to section) to work, but it seems to be doing odd things. For example, I have a terrain object and a spline object. I select 1 vertex of the spline object and tell it to move to the terrain, and my entire spline moves with it. 1. I wanted only the vertex to move, and 2. it doesn’t seem that the vertex moved to the terrain object. In fact, the vertex moved some distance past the terrain object. Has anyone else had this problem?
How did you tell the vertex to move? Code please!
The script in the How To moves OBJECTS. The modification of the script to move sub-objects (vertices) is possible, but you would have to show what you changed for us to comment what went wrong. See especially the “How To ... Flatten a SplineShape” which shows how to manipulate vertices of a spline and combine with the concepts of the object moving example…
Borislav “Bobo” Petrov
|
|
|
|
Thanks for the advice. I will try modifying the code to grab sub-objects.
|
|
|
|
Dumb question I hope… How do I make a button for my modified script that I can put on my UI?
also, the howto files do not seem to be in my scripts folder. If I wanted to open those to inspect how they are created, where would I look?
Thanks!
|
|
|
|
The ‘how to’ docs are part of the MAXScript documentation.
To make a toolbar button for your script, you can just open it in an editor window, select all, then drag it to a menu bar. 3dsmax will wrap it in a macroscript and create a toolbar button.
David “Stokes” Stokes
Senior Technical Artist, Blue Fang Games
|
|
|
|
| Settings
| Choose Theme color:
|
|
|
|
|
|
|
|
|