Screen shot operator missing control for "Full Screen" option #28107

Closed
opened 2011-07-28 21:07:52 +02:00 by Chris Want · 9 comments

%%%Hi there,

I've been trying to make a screen shot of a subwindow in Blender,
but there doesn't appear to be an option for this.

Digging deeper, it appears there is supposed to be a "Full Screen"
property for the screen shot operator, but it isn't showing up in
the interface (the save dialog says "Properties None").

The code I've been looking at in particular is in
/home/cwant/blender/bf-blender/blender/source/blender/editors/screen/screendump.c

In the function SCREEN_OT_screenshot(wmOperatorType *ot) there
are the lines defining a property for the operator:

prop= RNA_def_boolean(ot->srna, "full", 1, "Full Screen", "");
RNA_def_property_flag(prop, PROP_HIDDEN); /* hide because once the file sel is displayed, the option no longer does anything */

Changing the value from 1 to 0 in the first line causes the program to always save
the current area, rather than always saving full screen.
Commenting out the second line gives the option in the save dialog, but
as the comment says, the option does nothing.

Sorry, I don't understand the new architecture well enough to fix this issue.

Maybe there needs to be a second operator SCREEN_OT_screenshot_area() that
redefines the operator with the full screen flag equal to false?

Thanks,
Chris
%%%

%%%Hi there, I've been trying to make a screen shot of a subwindow in Blender, but there doesn't appear to be an option for this. Digging deeper, it appears there is supposed to be a "Full Screen" property for the screen shot operator, but it isn't showing up in the interface (the save dialog says "Properties None"). The code I've been looking at in particular is in /home/cwant/blender/bf-blender/blender/source/blender/editors/screen/screendump.c In the function SCREEN_OT_screenshot(wmOperatorType *ot) there are the lines defining a property for the operator: prop= RNA_def_boolean(ot->srna, "full", 1, "Full Screen", ""); RNA_def_property_flag(prop, PROP_HIDDEN); /* hide because once the file sel is displayed, the option no longer does anything */ Changing the value from 1 to 0 in the first line causes the program to always save the current area, rather than always saving full screen. Commenting out the second line gives the option in the save dialog, but as the comment says, the option does nothing. Sorry, I don't understand the new architecture well enough to fix this issue. Maybe there needs to be a second operator SCREEN_OT_screenshot_area() that redefines the operator with the full screen flag equal to false? Thanks, Chris %%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%The issue here is that the screenshot is taken before the filesel shows so once you have the option displayed, its usless.

Possible fixes are...

  • different hot keys for fullscreen/subwindow.
  • screenshot both, then the option within the file selector can be made to function.
  • screenshot all and crop after (depending on the option in the fileselctor)
  • have a menu what you want to screenshot before the filesel loads, annoting and will probably be grabbed too (unless you do some trick with a timer).
    %%%
%%%The issue here is that the screenshot is taken before the filesel shows so once you have the option displayed, its usless. Possible fixes are... - different hot keys for fullscreen/subwindow. - screenshot both, then the option within the file selector can be made to function. - screenshot all and crop after (depending on the option in the fileselctor) - have a menu what you want to screenshot before the filesel loads, annoting and will probably be grabbed too (unless you do some trick with a timer). %%%
Author

%%%Perhaps this is a radical suggestion: would it be possible to take the screen shot after selecting the file? This would not only prevent the full screen problem, but would also potentially fix another problem: when you use the space bar to search for the screen shot operator, the search panel gets included in the screenshot (I can think of only a few cases where that would be desirable).

%%%

%%%Perhaps this is a radical suggestion: would it be possible to take the screen shot *after* selecting the file? This would not only prevent the full screen problem, but would also potentially fix another problem: when you use the space bar to search for the screen shot operator, the search panel gets included in the screenshot (I can think of only a few cases where that would be desirable). %%%
Author

%%%By the way, attached is a patch that implements a solution that does Screenshot All/Subwindow.
The hotkey doesn't seem to work. If it did work, the hotkey for Screenshot All and Screenshot Subwindow
would be reversed from the convention in Blender 2.4x.%%%

%%%By the way, attached is a patch that implements a solution that does Screenshot All/Subwindow. The hotkey doesn't seem to work. If it did work, the hotkey for Screenshot All and Screenshot Subwindow would be reversed from the convention in Blender 2.4x.%%%
Author

%%%Here is the file (new interface for attachments in bug tracker is a bit strange).%%%

%%%Here is the file (new interface for attachments in bug tracker is a bit strange).%%%
Member

%%%will check on it.%%%

%%%will check on it.%%%

%%%Fixed the option and added it back in UI, also fixed popup menu showing in screenshot.%%%

%%%Fixed the option and added it back in UI, also fixed popup menu showing in screenshot.%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Author

%%%Thank you very much Brecht!

  • CW
    %%%
%%%Thank you very much Brecht! - CW %%%
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#28107
No description provided.