ScriptSpot

Forum topic · General Scripting

Wha is a Ray?

By jatz77 · 2016-04-06

Description

I never found proper documentation of Ray in autodesk online help.

  • What is a Ray() function?
  • How to use it?
  • Where to use it?
  • Another Question. It is easy to get the position of a vertex by

     $.verts[number].pos 

    but how about polygon or faces? Is there any way we can get the position of each faces in sub object level mode? Thanks.

    Comments (2)

    jatz77 · 2016-04-23

    Thank you I got it.

    `

    pixamoon · 2016-04-08

    Take a look on this great tutorial - its a sample how to use ray function
    https://vimeo.com/album/1514565/video/19783235

    what u mean by position of faces ? center point of face or positions of all vertexes of face?