Hi,
Recently I have had a problem with ATI onboard graphics & Vista 32
When I render, the render window freezes Blender upon closing with the red x.
The First fix is to press f12 to re-render then when done, press esc twice.
This works & Blender does not falter.
The Second workaround is to just use the image editor for rendering.
This works, but I like my render window better.
So i am aware of some scripts to open .blends & more using Windows native windows instead of Blender file browsing windows.
Could this be ported to open the Blender render window in a MS window?
here are the windows dialog files:
http://wiki.blender.org/uploads/3/33/Scripts_System_Windows_Dialogs.rar
here is an example to open .blend using XP/Vista file browsing.
#!BPY
""" Registration info for Blender menus:
Name: 'Open .blend_2.48'
Blender: 248
Group: 'System'
Tooltip: 'Open .blend files using standard Windows file dialog'
"""
# --------------------------------------------------------------------------
# ***** BEGIN GPL LICENSE BLOCK *****
#
# Copyright (C) 2005-2006 Mariano Hidalgo
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# ***** END GPL LICENCE BLOCK *****
# --------------------------------------------------------------------------
__author__ = "Mariano Hidalgo AKA uselessdreamer"
__url__ = ("blender", "elysiun")
__version__ = "1.0"
__bpydoc__ = """
Allows you to open a .blend file using the standard Windows file dialog.
The script recalls your last chosen folder and defaults there. If the
folder no longer exists, it defaults to C:\\.
Needs a full Python installation to work (www.python.org).
"""
import Blender
import os
import tkFileDialog
from Blender import Registry, sys
from Tkinter import Tk
t = Tk()
t.wm_title("Open Blend")
t.wm_state("icon")
d = Registry.GetKey('OpenBlend', True)
if d:
last_folder = d['last_folder']
else:
last_folder = "C:\\"
if sys.exists(last_folder):
os.chdir(last_folder)
else:
os.chdir("C:\\")
f = tkFileDialog.askopenfilename(title="Open Blend",filetypes=[(".blend files", "*.blend"),(".jpg files", "*.jpg")])
t.destroy()
if f:
d = {}
d['last_folder'] = sys.dirname((f).replace("/","\\"))
Registry.SetKey('OpenBlend', d, True)
if f[-6:] == ".blend":
Blender.Load(f)
elif f[-4:].lower() == ".jpg":
Blender.Load(f.replace(".jpg",".blend"))
else:
Draw.PupMenu("Error!%t|Not a .blend file")
I know this code is used to open the Windows File Browsing Window.
Is it possible to port this so it opens the render window instead or am I just dreaming?
thanks for looking.