How to get vertex position on "Specify" modifier stack !?

Hi there
In short I could get the wanted vertex in end result by this code:

meshop.getVert $ 6
 
or
 
polyop.getVert $ 6

and get the same vertex in baseobject mode means without modifiers effect by this one:

meshop.getVert $.baseobject 6

but I could NOT get the vertex in specify modifier, for example if object got morpher and skin modifier, I wanna get vertex pos in effect by just morpher and NOT skin modifier.
It could be done by selecting the modifier in modifier stack and run the first code, but no way by the script it-self...
I don't know even if it's possible or not, I need you Help, PLS.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Logan Millington's picture

You can solve this problem

You can solve this problem with the help of you tube because in this world just a few students and know about this and all over ten professionals of the vertex. When I can face the problem in cheapest essay writing service then just find the video on you tube and my problem is resolved.

TsveTan's picture

What

What exactly do you mean? ...it could be done with the 1 st code, but no way with the script. You executes the code in the listener or where? What's the difference between code and script?

3dline's picture

Exactly as you mentioned.

I mean that, if you got your object and select the morpher modifier that deformed the object and run the first line of code in Listener, it could exactly prompt the vertex position by morpher modifier deformation. But it need to be select the modifier by hand.
if you wanna do it just with code it-self without pre-selection, I couldn't find the way to do it.

any Idea?

miauu's picture

.

Set the morpher modifier to be selected(active) via maxscript:

-- if the morpher modifier is third modifier in the stack
modpanel.setcurrentobject $.modifiers[3]

and use your code.

3dline's picture

Thanks for your replay

if Create Panel is active, that code wont work and need to the Modify Panel, set to be active, that in my case got really slow down the script...
.
I wanna get a point helper stick to vertex position, in real time.
it seem that no way to do that. :(

miauu's picture

.

You mean when the vertex is moved the point helper to be moved with it?
Watch this video: https://www.youtube.com/watch?v=n10RPHkhK18

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.