Get Pos.X face

Anyone know how do I select the value of a single axis ...
for example

 $. modifiers [# Edit_Poly].getfacecenter 100 
[156743, -426333.0] 

I would pick only the value of X for example...
Something like with "$.pos.x"

thanks in advance

Comments

Comment viewing options

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

:)

Like this

fCenter = $. modifiers [#Edit_Poly].getfacecenter 8 
format "x = % ; y = % ; z = %\n" fCenter.x fCenter.y fCenter.z

barigazy

kimarotta's picture

Hey very thanks... this is a

Hey very thanks... this is a very very useful...

cheers

kimarotta.com.br
3d Artist  

barigazy's picture

Look at this thread also,

Look at this thread also, mayby you can find something
http://www.scriptspot.com/forums/3ds-max/general-scripting/vertex-script...

barigazy

Comment viewing options

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