GithubHelp home page GithubHelp logo

multiresolutioncameras's People

Contributors

gatada avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

multiresolutioncameras's Issues

Multi-Resolution Camera Frame will remain hidden if in the wrong collection

SYMPTOM

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.

ISSUE

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.

SUGGESTED SOLUTION

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.

can't hide objects in scene

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,

Calling bpy.ops.render.render_still_with_custom_resolution() via python script from command line results in errors.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.