ScriptSpot

Forum topic · General Scripting

Get Pos.X face

By kimarotta · 2012-06-01

Description

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

:)

barigazy · 2012-06-01

Like this

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

kimarotta · 2012-06-01

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

cheers