Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / move objects to a surface help
  RSS 2.0 ATOM  

move objects to a surface help
Rate this thread
 
14018
 
Permlink of this thread   Subscribe to this thread
avatar
  • terzaghi
  • Posted: 02 July 2008 05:18 PM
  • Total Posts: 20
  • Joined: 26 June 2008 07:33 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?



Replies: 0
avatar

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

Replies: 0
avatar
  • terzaghi
  • Posted: 03 July 2008 09:31 AM

Thanks for the advice.  I will try modifying the code to grab sub-objects.



Replies: 0
avatar
  • terzaghi
  • Posted: 03 July 2008 12:49 PM

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!



Replies: 0
avatar
  • Stokes
  • Posted: 07 July 2008 10:46 AM
  • Location: Boston Area, Massachusetts
  • Total Posts: 198
  • Joined: 22 August 2006 03:52 PM
  • Permlink of this post

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

Replies: 0




   
  Settings Choose Theme color: