shycats / VirtuCameraBlender

Blender add-on to use with VirtuCamera iOS App for realtime camera motion capture.
https://virtucamera.com
Other
137 stars 7 forks source link

Communication with app ends when viewport is modified while server/client is active #11

Closed sgodanas closed 2 years ago

sgodanas commented 3 years ago

If we press CTRL+SPACE to maximize the viewport, during an active vCam session, the app becomes unresponsive.

Error as below

Read prefs: C:\Users\sgoda\AppData\Roaming\Blender Foundation\Blender\2.93\config\userpref.blend
VirtuCamera: Blender plug-in version 1.1.0 | Server version 2.1.2
Loading vCam settings
Read blend: C:\Users\sgoda\Downloads\3_treescene_front.blend
Loading vCam settings
VirtuCamera: Listening on TCP port 23354
VirtuCamera: Accepted connection from: 192.168.1.179:49490
VirtuCamera: Starting Viewport Capture. 60.00 fps, 2.00 Mbits/s, Opaque: 1, Autosend: 1
Traceback (most recent call last):
 File "C:\pipeline\work\code\wkr\wkr_vp_tools_win\blender\2.93\win\scripts\addons\virtucamera_blender\virtucamera_blender.py", line 862, in timer_function
 vcserver.execute_pending_events()
 File "vc_core.pyx", line 1007, in virtucamera.vc_core.VCServer.execute_pending_events
 File "vc_core.pyx", line 1408, in virtucamera.vc_core.VCServer._async_get_capture_pointer
 File "C:\pipeline\work\code\wkr\wkr_vp_tools_win\blender\2.93\win\scripts\addons\virtucamera_blender\virtucamera_blender.py", line 669, in get_capture_pointer
 (x, y, width, height) = self.get_view_camera_rect()
 File "C:\pipeline\work\code\wkr\wkr_vp_tools_win\blender\2.93\win\scripts\addons\virtucamera_blender\virtucamera_blender.py", line 88, in get_view_camera_rect
 zoom_value = r3d.view_camera_zoom
AttributeError: 'NoneType' object has no attribute 'view_camera_zoom'