Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Measuring/Distance Tool - Set custom size?

Measuring/Distance Tool - Set custom size?

t_smith5
Collaborator Collaborator
2,125 Views
5 Replies
Message 1 of 6

Measuring/Distance Tool - Set custom size?

t_smith5
Collaborator
Collaborator

Hi

 

I've used Maya's measuring/Distance tool a little bit, but I can't seem to work out how you can set a custom size. In 3ds Max, it gives you the option to specify the length with the Tape Measuring tool.

 

3dsmax_HfCoBySovh.png

Is this possible in Maya? And if so, how do you do it?

Thanks

0 Likes
2,126 Views
5 Replies
Replies (5)
Message 2 of 6

mcw0
Advisor
Advisor

Are you saying that instead of measuring a distance, you just want the distance tool to display a set distance?  Like a ruler?  Maya's tool doesn't have that feature.  But you can do it with a script job and a custom attribute.  Add an attribute to allow you to set a distance and trigger a script job when that value changes.  The script job will normalize the vector between the 2 points and multiply that by the set distance.  Then add that value to your start point to set the end point.

Message 3 of 6

t_smith5
Collaborator
Collaborator

Exactly that, yeah. Ahh, okay. Unfortunately, I don't have any experience with scripting in Maya or Max, so I wouldn't know where to begin. 😅

Message 4 of 6

RyanCameron
Advocate
Advocate

Maybe this is just on my machine, but I have hotkey's for T and then D. Then click and drag in the viewport to measure the distance between two points (or objects). 

In the Attribute Editor, locate the "Distance between" node that was created when you did the distance tool. Expand it, locate distance attribute. Set the value of distance to whatever distance you're looking for. Hit enter, it should change it on your screen.

 

Again, maybe I have a non-standard setup but that's how I've done it in the past.  FYI, doing this will affect all instances of the distance tool in the scene. If you have a couple of these, you'll want to create a "distanceDimension1, 2, 3...etc..."

RB Cameron, AIA, LEED AP, EDAC
Digital Practice Leader

Message 5 of 6

mcw0
Advisor
Advisor

You must have a nonstandard Maya because the distance attribute can't be altered in anyway.

0 Likes
Message 6 of 6

t_smith5
Collaborator
Collaborator

Yeah, I was gonna say - I've not been able to adjust the distance manually, which is weird. But there's no Distance Between node from what I can see. I'm only seeing distanceDimension1 and distanceDimensionShape1. Only the Start and End Points can be adjusted if you break the connections. But the Distance box is a dark grey blue that can't be modified.

0 Likes