ScriptSpot

Forum topic · General Scripting

3dsmax 8 and polyop...

By tinnnpo · 2012-03-04

Description

Hi!
this will really make me crazy
I have an object I convert it to editable poly

I call this function to get the position of the face 201

polyop.getFaceCenter $sphere01 201

it ruturn

[11.174,-11.94,8.35353]
every thing is ok...

then, I added edit_poly modifier
I moved the same face(201) to a new position

I recall the same function as above to get the position of the face 201
polyop.getFaceCenter $sphere01 201

and here it return the same position
[11.174,-11.94,8.35353]
even if I moved the face

is there any problem it alwayse go to the base object not in current modifier
this work fine in max 7, max 9, max 2011 but not in 8

Comments (3)

tinnnpo · 2012-03-10

thanks but it didn't work it return
-- Unknown property: "getFaceCenter" in Edit_Poly:Edit Poly

thats really strange...lol max 8 is different from other versions...

barigazy · 2012-03-09

Also I suggest that you look in maxscript help the section "Edit_Poly:Modifier"

barigazy · 2012-03-09

try to use something like this
$sphere01.modifiers[#Edit_Poly].getfacecenter 201