PDA

View Full Version : how to get the positon of a null



vbk!!!
03-01-2004, 09:29 AM
hi
i would like to get the xyz position of a null.


this script allow me to get the "boundingbox" coord

@version 2.2
@warnings
@name Meshtest
@script generic

generic
{

mesh = Mesh("Null") || error("No Object Loaded!");


info("position: ", mesh.position());
}



what have i to add/change to get the xyz position ?
( i don't understand the lscript reference about that)

#lwrs_web
03-03-2004, 11:36 AM
mesh.getPosition(time)
mesh.getWorldPosition(time)


to get point positions:

mesh.position(mesh.points[1])

vbk!!!
03-04-2004, 01:56 AM
ok i understand now

thanx