Notifications
Clear all

[Closed] GetMorphPoint returns shifted values?

Hi!

I’m trying to get the Point3 values of verts in a morph target via maxscript. The simplest solution would be to use the supplied WM3_MC_GetMorphPoint method.
I would expect it to return the target’s values in object space, but the values are shifted. In my very simple test case about [-15.0,10.0,0].
I cannot see the logic behind this. Can you?
Don’t the return values represent what I’m trying to obtain? In my test the first morph target is simply a capture of the unchanged state of my object.

Thanks

6 Replies
2 Replies
(@denist)
Joined: 11 months ago

Posts: 0

it’s hard to say anything without seeing the data… attach max file

EDIT:

i don’t need the file. i see the problem, but can’t figure out the reason. interesting

(@denist)
Joined: 11 months ago

Posts: 0

i made a simple test scene… everything works as was expected.

It might be because the GetMorphPoint index is 0-based instead of 1-based like the GetVertex method is. So that MorphPoint[1] is returning the position of Vertex[2]? When I was messing around with this a while back that was causing skewed results for me anyway. May be something else though.

1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

no… it’s 1-based indexing

EDIT:
no! you are rigth. it’s 0-based

@Pacermike: Yes, thank you. But somehow I already figured that one out.
I’m about to do it differently now but it would still be useful to know how to interpret the method’s result.

Strange thing. I redid my little test on a new object and am now getting the right values it seems. Thank you for testing, denisT.