Skip to content

Commit

Permalink
Merge pull request #1 from claromes/blender-4
Browse files Browse the repository at this point in the history
Review for Blender 4.0
  • Loading branch information
claromes authored Dec 19, 2023
2 parents 773a980 + 89fac2f commit 8213b89
Show file tree
Hide file tree
Showing 13 changed files with 88 additions and 105 deletions.
65 changes: 0 additions & 65 deletions CHANGELOG.md

This file was deleted.

4 changes: 2 additions & 2 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
Copyright (C) 2022 Clarissa Mendes

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

<program> Copyright (C) <year> <name of author>
Easy Camera to View Blender Add-on Copyright (C) 2022 Clarissa Mendes
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Expand Down
25 changes: 0 additions & 25 deletions README.md

This file was deleted.

71 changes: 71 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
- Easy Camera to View -

Blender Add-on to create a Camera to View button on Header region and easily lock or unlock the view

-- Installation --

- Download the easy_camera_to_view_v0.2.zip file at https://github.com/claromes/easy_camera_to_view/releases/tag/v0.2.
- Open the Blender User Preferences and select the Add-ons tab.
- Click "Install..." button and select the easy_camera_to_view_v0.2.zip file.
- Click the checkbox to enable the add-on "Camera: Easy Camera to View".

-- Screenshots --

- User Preferences: https://github.com/claromes/easy_camera_to_view/blob/main/screenshots/easy_camera_to_view_v0.2_user.jpg
- Locked: https://github.com/claromes/easy_camera_to_view/blob/main/screenshots/easy_camera_to_view_v0.2_locked.jpg
- Unlocked: https://github.com/claromes/easy_camera_to_view/blob/main/screenshots/easy_camera_to_view_v0.2_unlocked.jpg
- Demo video: https://github.com/claromes/easy_camera_to_view/blob/main/screenshots/easy_camera_to_view_v0.2_demo.mp4

-- Development Branches --

- main
Released and maintaining version

- 3dview
A floating 3D View button. First idea, using gpu module and no longer in development, only for references.

-- Changelog --

- v0.2 - 2022-12-19
- Review for Blender 4.0
- Update README
- Add screenshots

- v0.1.1 - 2022-09-05
- Add Operators register

- v0.1.0 - 2022-09-03
- Add 3D View Header button
- Change Name, Description and Tracker/Doc urls
- Delete Floating button (gpu module)
- Delete Panel Open/Close buttons

- v0.0.5 - 2022-08-30
- Add Close floating button
- Change Icons

- v0.0.4 - 2022-08-28
- Add Persistent floating button
- Changed Name, Description, Tracker/Doc urls

- v0.0.3 - 2022-08-26
- Add Popup with lock/unlock icons
- Add Panel + open popup button
- Delete bgl module and gizmo/gizmogroup type

- v0.0.2 - 2022-08-24
- Add CHANGELOG, Doc url and bgl module and gizmo/gizmogroup type for tests (will be deleted)
- Change Category and Tracker url

- v0.0.1 - 2022-08-23
- Basic usage:
- Operators
- UI test panel

-- License --

GNU General Public License v3.0

-- Author --

Claromes (https://github.com/claromes)
11 changes: 6 additions & 5 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
bl_info = {
"name" : "Easy Camera to View",
"description" : "Easy access to Camera to View",
"author" : "Claromes",
"description" : "Easy access to lock Camera to View",
"blender" : (3, 2, 2),
"version" : (0, 1, 1),
"version" : (0, 2, 0),
"blender" : (4, 0, 2),
"location" : "Header",
"category" : "3D View",
"tracker_url": "https://github.com/claromes/easy_camera_to_view/issues"
"doc_url": "https://github.com/claromes/easy_camera_to_view",
"tracker_url": "https://github.com/claromes/easy_camera_to_view/issues",
"category": "Camera"
}

import bpy
Expand Down
Binary file removed demo-btn.gif
Binary file not shown.
Binary file removed demo-full.gif
Binary file not shown.
12 changes: 6 additions & 6 deletions header_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ class LOCK_OT_Camera_View(Operator):

@classmethod
def poll(cls, context):
if context.space_data.lock_camera == False:
return True
else:
if context.space_data.lock_camera is True:
return False

return True

def execute(self, context):
context.space_data.lock_camera = True
Expand All @@ -27,10 +27,10 @@ class UNLOCK_OT_Camera_View(Operator):

@classmethod
def poll(cls, context):
if context.space_data.lock_camera == False:
return False
else:
if context.space_data.lock_camera is True:
return True

return False

def execute(self, context):
context.space_data.lock_camera = False
Expand Down
5 changes: 3 additions & 2 deletions header_pnl.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ def draw(self, context):

lock = context.space_data.lock_camera

if lock is not False:
if lock is True:
row.operator(UNLOCK_OT_Camera_View.bl_idname, text='Camera to View', icon='LOCKED', depress=True)
else:

if lock is False:
row.operator(LOCK_OT_Camera_View.bl_idname, text='Camera to View', icon='UNLOCKED', depress=False)
Binary file added screenshots/easy_camera_to_view_v0.2_demo.mp4
Binary file not shown.
Binary file added screenshots/easy_camera_to_view_v0.2_locked.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/easy_camera_to_view_v0.2_user.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8213b89

Please sign in to comment.