Adverti horiz upsell

Distance Between Tool 1.2.1 for Maya (maya script)

A tool to measure distances between objects

License
Button download
490 Downloads

Compatibility

  • 2016, 2015, 2014, 2013, 2012

Operating Systems

  • Mac
  • Windows

History

Created:07/17/2015
Last Modified:08/23/2015
File Size: 4.96 KB

Keywords

#Python, #PyMel, #Measure

per page
1-6 of 6

Reviews Love it? Or maybe you want to share some creative ways you're putting this item to use.

  • maniak__gr

    maniak__gr said about 9 years ago:

    Great update thank you!!!
  • maniak__gr

    maniak__gr said over 9 years ago:

    Thank you. You are A God among Mortals!!! My first try was on 86th line, but a bit different from your instructions. Thanks again keep sharing!!
  • kumaran Murugun

    kumaran Murugun said over 9 years ago:

    Well, wish you good luck in your tool. For the mentioned changes, you could do the following for Meters. Its only a simple one line change. For further changes you can check out the docs here. https://download.autodesk.com/us/maya/2011help/pymel/generated/classes/pymel.core.datatypes/pymel.core.datatypes.Distance.html Change the line 86 to the following: return "%d Meters" % dist.asMeters()
  • maniak__gr

    maniak__gr said over 9 years ago:

    Thank you for your reply and your explanation. I was looking for that kind of script, a nice tool for building a game level in Maya and Unreal 4 using real world dimensions. You can speed up your workflow by spending less time in measuring. Unfortunately i don't know a thing about scripting. I tried to tweak it, but i had no luck... Thank you again and keep up the good work you have done.
  • kumaran Murugun

    kumaran Murugun said over 9 years ago:

    Well, first of all you can modify the script and hack at it all you want. You could easily add meters and so on to it. Its not that difficult. You could check out the pymel docs for further information. As for why i need to convert. For example i work in feet or inches, and i set my grid units to show feet and inches. Or the other way around. Its not easy to identify the distances. And if the need occurs to work in another unit, and you need the distances in another unit. For various maya reasons,,, or other architectural reasons, ...... that is the reason why the script came about. Its currently set to feet and inches, for my needs. I will take note of your suggestion on the next iteration. If you can't wait, then hack away at the code yourself. Just sharing, Kumar
  • maniak__gr

    maniak__gr said over 9 years ago:

    It's a nice script thanks! But there is a huge flaw it is not flexible it gives distances only in Feet. The International standard unit for measuring a distance is Meters. The best solution is to add another column to choose if someone wants Imperial or Metric system. Even that is pointless to convert an objects dimensions to another unit. If i set my project to Feet, Miles, Meters or Kilometers that is the unit i want to work with... so what's the point to convert it to a different one?? If it is not so hard give the option to choose which one we want to work with ..if not let it display the predefined unit. Thank you.

Post a review:

Rate this item: