ScriptSpot

MCG

MCG Edge Length Display

By vusta · 2016-04-29

Version
1.03
Version requirement
2016
Other software required
Max2016 + SP3 + EXT2, Max2017
Date updated
2016-07-03
Votes
2
Downloads

Tags: MCG Edge Length Display

Description

This MCG displays edge length of visible edges in your mesh. Will also work for spline, as in straight segments, ie. not the curve of a circle

ver 1.01: added unit display...with chicken foot symbol for feet...well it's my MCG and I can do whatever I want..

ver 1.02: added miles and kms

ver 1.03: updated the Vu_GetVisibleEdges compound so that all edges are now unique. Previously, non-open edges were doubled up...you don't notice it as the displays are doubled up in exactly the same place...but now they are all single edges.

If you want to just get at my compound (eg. there's a Plexus MCG posted that you might want to use my compound for proper open edges display and also no tris...then you can extract the comound manually by renaming mcg file to zip...)

ver 1.04: very silly of me...the whole point of this was No Duplicates...but somehow I left out the RemoveDuplicates logic....DOH!!!....anyway...it's back in properly now..

Videos
Comments (10)

Max 2021; MCG implementation changed?

cptSwing · 2021-12-29

I get the following error in listener

Error occurred in Vu_EdgeLengthDisplay defined in C:\Users\j\Autodesk\3ds Max 2021\User Tools\Max Creation Graph\Packages\Vu_EdgeLengthDisplay.mcg
- System.AggregateException, One or more errors occurred. at Void ThrowIfExceptional(Boolean)
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEach[TSource](Partitioner`1 source, Action`1 body)
   at Autodesk.Sequences.ImmutableArray.ParallelSelect[T,U](IArray`1 self, Func`2 map)
   at _anonymous_type_0.main(InstanceState state, INode PickNode, Int32 Unit, Int32 FloatPrecision, Boolean Upright, Single Scale, Single Kerning, Single UserRotY, Single UserRotX, Single UserRotZ, Matrix shapeTransform, Single UserOffsetX, Single UserOffsetY, Single UserOffsetZ)


(EdgeLengthDisplay spline object added to scene, set to cm, a spline picked/selected in options)

nice one

thewool · 2018-01-30

Hi there, just learning mcg. Was wondering if you could let me know how you display calculated values on the screen in mcg?

Is it possible to do in a modifier? For example display the face area next to the face in question?

Also, would it possible to share your mcg file to learn how?

Cheers

but...but.....but...

vusta · 2018-01-30

my mcg (90% of them) are all there for ppl to open them up and dissect...

after you've installed, by default, the tools are in:

C:\Users\xxx\Autodesk\3ds Max 201N\Max Creation Graph\Tools

thanks

thewool · 2018-01-31

Hi. thanks for quick response. Didn't realise that!

Can use it

Puffdad · 2017-06-13

I use max 2016+SP4
but I can't install the tool.
Hoe can I do?

Attachments

Extension

vusta · 2017-06-13

for 2016, you MUST have Extension 1 or 2.

Don't work for me

3dbox · 2017-05-12

I'm trying it on both Max 2016+Ext2 and Max 2017.
In both of them nothing appears in viewport after I create EdgeLengthDisplay object. This errors logged in listener:

Attachments

well if you want to display the edgelengh of some object....

vusta · 2017-05-15

you gotta PICK some object...if you don't pick some object...then it's 'null'...if it's null....how is it gonna get an edge length ?

3dbox · 2017-05-15

I apologize that I didn't say at once that of course I pick the object. Nothing happens, only errors in listener.

Attachments

quick test...

vusta · 2017-05-15

rename your C:\Users\eu\Autodesk\3ds Max 2017\Max Creation Graph to bkup_Max Creation Graph...this is so you have a clean slate...reinstall my mcg (it will recreate a fresh Max Creation Graph directory)...see how that goes...