Notifications
Clear all

[Closed] Offset Vertex using System Units?

I’m trying to use Polyop.MoveVert. But it seems to be using the default units and not the actual units setup (Feet).

I am using a distance check between positions, in world space, and offsetting with that. If I do the calculations, the movement spinner value and my results are the same value, except the spinner is in cm

But, when using the offset value (30.4), polyop.MoveVert causes the vertex to move much further than it should, about 2x as far?

I am not using any modifiers in the stack.

5 Replies
1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

first of all is stop using “feet” and “inches”… it’s an anachronism.
but if you want to code/decode generic units use units struct : units.decodevalue and units.formatvalue

Have you looked at the units.formatValue and units.decodeValue at the bottom of the Units Struct – Accessing System and Display Units page?

-Eric

Yeah. I was messing with that.

I know I ran into a similar issue before with a script. But it was with the spinner UI control and the units. I just had to have the spinner use system units I think and that solved it.

Ok, I can look into that and see how that works.

Not only does DenisT teach maxscript he also teaches me new words!