Hi

I am currently scripting mayavi through python and am at the point in
time where I wish to "render" the scene and take a snapshot.

I am unable to accurately specify the size of the screen shot. Can
someone please point me to the manual or some code to show me.

All I want is a 1024x768 picture - but:
* when I set minsize - it has borders
* geometry - doesn't resize - I think it needs an event fired
* renwin.SetSize - changes the renwin virtual size (getsize returns
right) but does not give me a picture

Currently minsize with the "border size and control panel size" gives me
the right size - but that's pretty dumb way to do it.

Can anyone enlighten me please?

    #v.root.minsize(renderWinSize[0]+(1280-988),
renderWinSize[1]+(1024-966)) # 988 966
    #v.root.geometry("1024x768")
    #v.renwin.renwin.SetSize(renderWinSize[0]+(1280-988),
renderWinSize[1]+(1024-966))

    v.renwin.renwin.Render()
    v.renwin.save_png(output_file_full_name)



Regards,
Terry Rankine
61 8 6436 8601

-------------------------------------------------------------------------
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

Reply via email to