Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Python / Get Window Size/Position
  RSS 2.0 ATOM  

Get Window Size/Position
Rate this thread
 
37911
 
Permlink of this thread  
avatar
  • Monkey
  • Posted: 17 December 2009 09:10 PM
  • Total Posts: 5
  • Joined: 12 December 2008 06:05 PM

Hi,

I’ve created a tool using CreateUniqueTool(), and now I want to query its on screen coordinates and dimensions so I can save this for future use and create it in the same position as it was left. None of the properties seem to return anything useful at all. Does anyone know how to do this?

So for example, if my tool is wrapped to t, I want to be able to access something like t.PosX and get back a screen coordinate such as 347 pixels. The only information I can get back are the region positions but these are all relative to the tool origin - I want absolute positions in screen space.

I am aware of the StartSizeX/Y and StartPosX/Y properties but these are obviously no good until I can query the position and dimensions in the first place.

thanks!



Replies: 0