gatada / multiresolutioncameras Goto Github PK
View Code? Open in Web Editor NEWEasily customize resolutions and render your cameras.
Easily customize resolutions and render your cameras.
Rendering frame does not appear in the 3D Viewport when the Active Camera has a custom rendering resolution, despite the mesh icon being correctly parented to the camera.
I believe the issue being that the Frame Mesh was initially created in a collection that is currently hidden in viewport, while the Active Camera is in another visible collection.
Since a mesh can be a member of multiple collections, maybe ensuring that the Frame Mesh is only found in the collection containing the Active Camera will solve the issue?
In short: Move Render Frame to the collection used by the active camera.
Hi,Gatada,
two bugs I found in jb-multicamera.py
the previous version did not have this error.
the new version of your multi resolution camera addon cause Blender unable to hide objects, neither use shotcut nor clicking the eye icon in the outline panel.
another one is the checkbox “highlight selects Camera” ,turn it on will make Blender freezes,
tested it in Blender2.41 and Blender2.61LTS ,without any other addons,
My script is simply:
import bpy
bpy.ops.wm.open_mainfile(filepath="blenderfile.blend")
save_path = "/tmp"
room_name = "room01"
for i in range(bpy.data.scenes["Scene"].frame_start, bpy.data.scenes["Scene"].frame_end+1, bpy.data.scenes["Scene"].frame_step):
bpy.context.scene.frame_set(i)
camera = bpy.data.scenes["Scene"].camera
file_name = "%s/%s-%02d" % (save_path, room_name, i)
print("Rendering Frame:", i, "on camera:", camera.name)
bpy.ops.render.render_still_with_custom_resolution(camera_name=camera.name)
Running it with: Blender --python script.py -b
Results in the the first Frame rendering then crashing at the end with:
Traceback (most recent call last):
File "/Users/mouring/Library/Application Support/Blender/3.6/scripts/addons/jb-multicamera.py", line 809, in execute
context.area.tag_redraw()
AttributeError: 'NoneType' object has no attribute 'tag_redraw'
Info: Rendering Top Camera - interface will become unresponsive
Error: Python: Traceback (most recent call last):
File "/Users/mouring/Library/Application Support/Blender/3.6/scripts/addons/jb-multicamera.py", line 809, in execute
context.area.tag_redraw()
AttributeError: 'NoneType' object has no attribute 'tag_redraw'
Location: /Users/mouring/My Applications/3D Apps/Blender.app/Contents/Resources/3.6/scripts/modules/bpy/ops.py:113
Error: Python: Traceback (most recent call last):
File "/private/tmp/script.py", line 13, in
bpy.ops.render.render_still_with_custom_resolution(camera_name=camera.name)
File "/Users/mouring/My Applications/3D Apps/Blender.app/Contents/Resources/3.6/scripts/modules/bpy/ops.py", line 113, in call
ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Error: Python: Traceback (most recent call last):
File "/Users/mouring/Library/Application Support/Blender/3.6/scripts/addons/jb-multicamera.py", line 809, in execute
context.area.tag_redraw()
AttributeError: 'NoneType' object has no attribute 'tag_redraw'
Location: /Users/mouring/My Applications/3D Apps/Blender.app/Contents/Resources/3.6/scripts/modules/bpy/ops.py:113
OS is MacOS running Blender 3.6.5 (hash cf1e1ed46b7e built 2023-10-18 23:44:49)
Since I can't attach the simple blend file example you can find it here: https://www.dropbox.com/scl/fi/t04sbro71hwuc6wgq2qkq/test.blend?rlkey=pn51hf5l9w0wnr1by9gbryj6p&dl=0
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.