Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Featured Threads
  inspiration alert!!!
(37 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies) Members Gallery
(516 replies)
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Align pivot to (selected) object edge?
show user profile  mr_pablo
I have several planes (editable polys) positioned on a 2D plane, with the edges "butted" up against each other (imagine a cube unfolded)

I need to move the pivot points of each plane so they are aligned to one edge, which I can do, but then I need the pivot to be rotated so it follows the direction of the edge, this I cannot figure out.

I managed to move the pivot (using "Affect Pivot Only" in the Heirarchy tab) using the various snap options, but it doesnt seem to want to let me "snap" to the direction (rotation?) of the edge.

Is this at all possible, or do I have to simply guess?

(BTW, the shape laid out is not a cube unfolded, so I cannot rely on perfectly straight edges)


Software Developer / Photographer
read 818 times
4/23/2015 5:15:06 PM (last edit: 4/23/2015 5:15:06 PM)
show user profile  digs
create linear shape from edge, path constraint to edge, freeze tranforms?
read 806 times
4/23/2015 6:05:22 PM (last edit: 4/23/2015 6:05:22 PM)
show user profile  mr_pablo
Seems like a lot of extra work, with the potential of a lot of pivots that need this doing to.

Any idea if there is a plugin for this? Seems like an oversight on the rotational snap tool that you can't do this :/

Software Developer / Photographer
read 789 times
4/24/2015 11:46:55 AM (last edit: 4/24/2015 11:46:55 AM)
show user profile  FX
Only guy I can think of is Mr Meow ...I know his Visual Pivot Placer has sub-object functions, it may do what your asking.

read 768 times
4/24/2015 6:12:52 PM (last edit: 4/24/2015 6:12:52 PM)
show user profile  mr_pablo
Just tried his VPP script from script spot. It moves the pivot, but doesn't seem to rotate it to align along the edge :(

Software Developer / Photographer
read 761 times
4/24/2015 6:37:09 PM (last edit: 4/24/2015 6:37:09 PM)
show user profile  mrgrotey
Create a target camera snapped to one vertex with the target on the other vertex and align your pivot to the camera.


read 751 times
4/24/2015 7:50:38 PM (last edit: 4/24/2015 7:50:38 PM)
show user profile  Garp
Once one of the pivot's axes is aligned to the edge, do you need another axis to be aligned to the face's normal?

read 746 times
4/24/2015 9:02:07 PM (last edit: 4/24/2015 9:02:07 PM)
show user profile  mr_pablo
Grotey - I'll give it a go, but again, this is going to be time consuming when there are a lot of faces... Any way to automate this maybe?

Garp - not needed, as the face will only ever pivot about that edge (think of a piece of paper being folded in half) so no real need to align to the faces normal.

Software Developer / Photographer
read 716 times
4/27/2015 11:34:53 AM (last edit: 4/27/2015 11:34:53 AM)
show user profile  Garp
Try this:

The script runs only on Editable Poly objects.
Go through your objects and select exactly one edge on each. Then select all the objects and run the script.

I didn't check for special cases, like modifiers in the stack, animation or non-uniform scale.
If you want, you can bundle the code in a macroscript and bind it to a hotkey.

read 697 times
4/27/2015 4:49:41 PM (last edit: 4/27/2015 5:10:44 PM)
show user profile  mr_pablo
Garp - excellent thank you! now if only i can find a way to easily fold up the shape haha

Software Developer / Photographer
read 687 times
4/27/2015 5:17:50 PM (last edit: 4/27/2015 5:17:50 PM)
show user profile  Coxy
I needed this the other week too! I basically did what Grotey suggested, but instead of using a camera with the measuring tape.

Garp you are awesome! give me your scripting brain.
read 678 times
4/27/2015 6:28:05 PM (last edit: 4/27/2015 6:28:05 PM)
#Maxforums IRC
Open chat window