ScriptSpot

Forum topic · General Scripting

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

By 3dline · 2016-05-02

Description

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 (6)

Logan Millington · 2020-01-07

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 · 2016-05-06

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?

Exactly as you mentioned.

3dline · 2016-05-11

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 · 2016-05-11

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.

Thanks for your replay

3dline · 2016-05-15

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. :(