ObjectsExport.ms
上传用户:qccn516
上传日期:2013-05-02
资源大小:3382k
文件大小:0k
源码类别:

游戏引擎

开发平台:

Visual C++

  1. filename = getsavefilename caption:"Objects Export"
  2. if filename != undefined then (
  3. file = createfile filename
  4. for node in selection do (
  5. format "%n" node.name to:file
  6. xyz = node.transform.position
  7. rot = (inverse node.transform).rotation
  8. format "% % % % % % %nn" xyz.x xyz.y xyz.z rot.x rot.y rot.z rot.w to:file
  9. )
  10. close file
  11. )