rxlaboratory / dublf_duviews Goto Github PK
View Code? Open in Web Editor NEWView tools for Blender
License: GNU General Public License v3.0
View tools for Blender
License: GNU General Public License v3.0
bpy.context.scene.render.display_mode has moved into the user preferences, so the addon can't change it to "open new render window" mode, then change it back anymore.
Also, I'm not sure if the addon should be using one of the "temporary" windows anyway, since you can't open multiple of them because they reuse an existing temporary window.
bpy.ops.screen.area_dupli('INVOKE_DEFAULT')
Can be used to duplicate only the current area into a new, non-temporary window.
Then the area type of that permanent window can be changed as before.
It creates the window with the same dimensions as the area being copied - which can be a problem when used from the top bar Window menu, since that is very wide but not very tall.
I've found that the following
bpy.ops.screen.info_log_show('INVOKE_DEFAULT')
bpy.ops.screen.area_dupli('INVOKE_DEFAULT')
bpy.ops.wm.window_close()
creates/reuses a temporary window with a reasonable default size,
duplicates the info log into area into a new non-temporary window,
then closes the temporary window (for some reason - might be a race condition with respect to what the "current" window is).
Unfortunately it also remains tied to the workspace in the main window, so if you switch to say the animation workspace, it's possible the area you duplicated will change type.
For me, it sometimes opens an Animation Nodes Editor instead (a node view from an addon), and sometimes a Compositor view.
If I disable the animation node addon, it works -- not sure if this is their fault or not.
But it can be worked around by doing something like
if area.type == 'NODE_EDITOR':
area.ui_type = 'ShaderNodeTree'
to always open a Shader Editor.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.