API for screen normal/parallel

vipin_22401
vipin_22401 Altair Community Member
edited October 2020 in Community Q&A

Hello all,

 

Anyone know the APIs to get screen normal and parallel? 

Since these options are available in direction panel there could be some APIs to find out  this.

 

image.png.2b7a25ee25464c829fa9b475ca8abe75.png

Answers

  • tinh
    tinh Altair Community Member
    edited January 2019

    Hi

    Use hm_winfo viewmatrix

    3 in 12 values are x y z of screen vector

    From version 13 there is another command returns 3 values but i don't remember :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />

  • tinh
    tinh Altair Community Member
    edited January 2019

    hm_winfo viewmatrix

    {a02 a12 a22} is screen normal

     

  • vipin_22401
    vipin_22401 Altair Community Member
    edited January 2019

    Thank you @tinh :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />