>>>>> "TR" == <[EMAIL PROTECTED]> writes:
TR> Hi I am currently scripting mayavi through python and am at
TR> the point in time where I wish to "render" the scene and take
TR> a snapshot.
TR> I am unable to accurately specify the size of the screen
TR> shot. Can someone please point me to the manual or some code
TR> to show me.
TR> All I want is a 1024x768 picture - but: * when I set minsize -
TR> it has borders * geometry - doesn't resize - I think it needs
TR> an event fired * renwin.SetSize - changes the renwin virtual
TR> size (getsize returns right) but does not give me a picture
This seems to work for me:
v = mayavi.mayavi()
v.root.geometry("1024x768")
# Try this if you don't get an update -- I don't need it.
v.root.update()
print v.renwin.tkwidget.winfo_width()
print v.renwin.tkwidget.winfo_height()
This is a hack but if you want to make sure the renderwindow is a
particular you can add the difference of the tkwidget's width/height
to the geometry.
cheers,
prabhu
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users