Get vertex position after flex

Get vertex position after flex

Anonymous
Not applicable
511 Views
6 Replies
Message 1 of 7

Get vertex position after flex

Anonymous
Not applicable
Hi,

Simple problem, no idea how to solve it 😉

A line shape has a simple flex modifier applied.
When I try to get a specific vertex (6) position with getKnotPoint $Line01 1 6, it always returns the vertex position without having the flex modifier applied.
I probably need to run the getKnotPoint on a edit_spline modifier after the flex modifier?

Any idea?

Thanks,
Davy
0 Likes
512 Views
6 Replies
Replies (6)
Message 2 of 7

Steve_Curley
Mentor
Mentor
See if this thread helps any.

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 3 of 7

Anonymous
Not applicable
No, not really, I think mine is really Flex related.
Flex updates the line but when using getKnotPoint, it doesn't go all the way up to Flex so it results in the line vertex position without any Flex applied =(

Davy
0 Likes
Message 4 of 7

Steve_Curley
Mentor
Mentor
Don't ask me what happened there - completely the wrong thread...

I've edited the post above to have the correct link - apologies about that.

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 5 of 7

Anonymous
Not applicable
Nope, that's about vertices from geometry while mine is from a spline.

I don't understand why it won't get the correct vertex position after flex is applied. Looks like flex does not affect the reall position from all vertices?

Davy
0 Likes
Message 6 of 7

Steve_Curley
Mentor
Mentor
I don't understand it either, but that is why (in the other thread) the solution is to take a snapshot - which does happen at the top of the stack and therefore includes all the changes made by the modifiers.

Ahhh - I knew I'd seen this question before - area.autodesk.com/forum/Autodesk-3ds-Max/maxscript/solved-obtaining-coordinates-of-a-spline-vertex-affected-by-flex/

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 7 of 7

Anonymous
Not applicable
Sweet, works like a charm...

Thanks a lot,
Davy
0 Likes