Notifications
Clear all

[Closed] Place a Form in Viewport

Hello,

I am newbie to Maxscript and have been trying to find answer to a problem,

What I Want : A maxform floating at the bottom edge of active viewport.

Problem : I am not able to find the X Y position for the Viewport in Screen space.

i am using the

form.setBounds X Y W H

to place the form, the description for this setBounds method says the location is in screen space.

Can anyone guide me on how to place a form at the bottom edge of active viewport.

Thank You.

2 Replies
 lo1

Viewport coordinates in screen space:

mouse.screenpos - mouse.pos

Thanks : lo,

you saved me, its working just great.