Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5875

Screen coordiantes to Client coordinates (RhinoScript)

$
0
0

@Jarek wrote:

Is there a way to convert Client coordinate to Screen coordinate (or vice-versa)?

I see XformWorldToScreen and XformScreenToWorld, so the only way I can do the above conversion now is via converting to WorldCoordinate in-between. Any ideas for a direct way ?

I can get a ViewSize and ScreenSize, but I don’t see a way to know the viewport upper-left corner location to do the math, other than converting the Rhino.ViewNearCorners from world to screen/client.

Thanks,

–jarek

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5875

Trending Articles