-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5f1ffdc
Showing
4 changed files
with
1,983 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# MyFaceMask | ||
|
||
### English | ||
|
||
MyFaceMask add-on has been created as initiative by WASP. It's a tool with the aim to guide the user in the process of creating MyFaceMask breathing masks: | ||
https://www.3dwasp.com/mascherina-stampata-3d-da-scansione-3d/ | ||
|
||
In order to use correctly the add-on you should start working on the specific Blender file MyFaceMask.blend | ||
|
||
### Italiano | ||
|
||
MyFaceMask add-on nasce su iniziativa di WASP per guidare l'utente nella procedura di adattamento della maskerina respiratoria MyFaceMask: | ||
https://www.3dwasp.com/mascherina-stampata-3d-da-scansione-3d/ | ||
|
||
Per utilizzare correttamente la add-on è necessario lavorare all'interno del file di Blender MyFaceMask.blend | ||
|
||
### Installazione: | ||
|
||
1. Apri Blender. Vai su "Edit" > "Preferences", e spostati nella categoria "Add-ons" | ||
3. Premi su "Install" e seleziona lo il file zip della add-on (non estrarre il file, verrà estratto automaticamente da Blender) | ||
4. Attiva MyFaceMask, se la add-on è installata correttamente la troverai nel pannello di destra della "Viewport" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
# ##### BEGIN GPL LICENSE BLOCK ##### | ||
# | ||
# 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 the Free Software Foundation; either version 2 | ||
# of the License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software Foundation, | ||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
# | ||
# ##### END GPL LICENSE BLOCK ##### | ||
|
||
# ------------------------------- MyFaceMask --------------------------------- # | ||
# ------------------------------- version 0.1 -------------------------------- # | ||
# # | ||
# Alessandro Zomparelli with WASP # | ||
# (2020) # | ||
# # | ||
# ############################################################################ # | ||
|
||
bl_info = { | ||
"name": "MyFaceMask", | ||
"author": "Alessandro Zomparelli with WASP", | ||
"version": (0, 1, 00), | ||
"blender": (2, 82, 0), | ||
"location": "", | ||
"description": "Custom made 3D printable breathing Mask, based on 3D scanned face", | ||
"warning": "", | ||
"wiki_url": "", | ||
"tracker_url": "", | ||
"category": "Object"} | ||
|
||
|
||
translation_dict = { | ||
'it' : { | ||
('Operator', 'Adapt mask') : 'Adatta maschera', | ||
('Operator', 'Remesh') : 'Ricostruisci', | ||
('*', 'Change brush mode') : 'Cambia modalità pennello', | ||
('*', 'Manually add ID tag') : 'Aggiungi manualmente un tag identificativo', | ||
('*', 'Extract mask border based on red area') : "Estrai il contorno dell'area rossa e adatta la maschera", | ||
('*', 'Invert border symmetry') : 'Inverti la simmetria del bordo', | ||
('*', 'Symmetrize contact border') : 'Rendi simmetrico il bordo di contatto', | ||
('*', 'Automatically remesh surface') : 'Ricostruisci automaticamente la superficie chiudendo eventuali fori', | ||
('*', 'Manually edit control points') : 'Modifica manuale dei punti di controllo', | ||
('*', 'You are going to do a non destructive operation') : "Attenzione, stai per eseguire un'operazione distruttiva", | ||
('*', 'Press ESC to undo') : 'Premi ESC per annullare', | ||
('*', 'End manual editing') : 'Termina modifica manuale', | ||
('*', 'End manual tag insertion') : 'Termina inserimento identificativo', | ||
('*', 'Define the area on the face using the brush tool') : "Definisci l'area sul volto utilizzando il pennello", | ||
('*', 'Prepare model for 3D printing') : 'Prepara il modello per la stampa', | ||
('*', 'Prepare 3D print:') : 'Prepara stampa 3D:', | ||
('*', 'Manually place holes') : 'Posiziona manualmente i fori', | ||
('*', 'Manually align position and rotation of the filter') : 'Allinea manualmente la posiizione e la rotazione del filtro', | ||
('*', 'Identification code to manually emboss on the surface') : 'Codice identificativo da inserire in rilievo sulla superficie', | ||
('Operator', 'Prepare model') : 'Prepara modello', | ||
('Operator', 'Invert symmetry') : 'Inverti simmetria', | ||
('Operator', 'Define area') : 'Definisci area', | ||
('Operator', 'Symmetric border on') : 'Attiva simmetria', | ||
('Operator', 'Symmetric border off') : 'Disattiva simmetria', | ||
('Operator', 'Align filter') : 'Allinea filtro', | ||
('Operator', 'Manual editing') : 'Modifica manuale', | ||
('Operator', 'Done') : 'Fatto', | ||
('Operator', 'End editing') : 'Termina modifica', | ||
('*', 'Nose pressure') : 'Pressione naso', | ||
('*', 'Import scan:') : 'Importa scansione:', | ||
('*', 'Adapt mask:') : 'Adatta maschera:', | ||
('*', 'Adjust:') : 'Rifinisci:', | ||
('*', 'Identity:') : 'Identità:', | ||
('*', 'Export:') : 'Esporta:', | ||
('Operator', 'Insert tag') : 'Inserisci tag', | ||
('Operator', 'Show holes') : 'Visualizza fori', | ||
('Operator', 'Align filter on') : 'Attiva allinea filtro', | ||
('Operator', 'Align filter off') : 'Disattiva allinea filtro', | ||
('Operator', 'Hide holes') : 'Nascondi fori', | ||
('Operator', 'Prepare model') : 'Prepara modello', | ||
('Operator', 'Place holes') : 'Posiziona fori' | ||
} | ||
} | ||
|
||
|
||
if "bpy" in locals(): | ||
import importlib | ||
importlib.reload(myfacemask_tools) | ||
importlib.reload(utils) | ||
|
||
else: | ||
from . import myfacemask_tools | ||
from . import utils | ||
|
||
import bpy | ||
from bpy.props import PointerProperty, CollectionProperty, BoolProperty | ||
|
||
classes = ( | ||
myfacemask_tools.myfacemask_remesh, | ||
myfacemask_tools.myfacemask_adapt_mask, | ||
myfacemask_tools.myfacemask_weight_toggle, | ||
myfacemask_tools.myfacemask_weight_add_subtract, | ||
myfacemask_tools.myfacemask_mirror_border, | ||
myfacemask_tools.myfacemask_mirror_border_flip, | ||
myfacemask_tools.myfacemask_boolean, | ||
myfacemask_tools.myfacemask_holes_snap, | ||
myfacemask_tools.myfacemask_edit_mask, | ||
myfacemask_tools.myfacemask_place_filter, | ||
myfacemask_tools.myfacemask_edit_mask_off, | ||
myfacemask_tools.myfacemask_tag_mask_off, | ||
myfacemask_tools.myfacemask_generate_tag, | ||
myfacemask_tools.MYFACEMASK_PT_weight | ||
) | ||
|
||
def register(): | ||
from bpy.utils import register_class | ||
for cls in classes: | ||
bpy.utils.register_class(cls) | ||
bpy.types.Scene.myfacemask_id = bpy.props.StringProperty(name='ID', description='Identification code to manually emboss on the surface') | ||
bpy.app.translations.register(__name__, translation_dict) | ||
|
||
def unregister(): | ||
from bpy.utils import unregister_class | ||
for cls in classes: | ||
bpy.utils.unregister_class(cls) | ||
bpy.app.translations.unregister(__name__) | ||
|
||
if __name__ == "__main__": | ||
register() |
Oops, something went wrong.