Commit a9d95fa44e7c4cd5be8c04f762d61a3a72f87db3

Authored by André Araújo
1 parent c1a1afbf
Exists in master

Insere 'avatar_cartoon_v1.0.0.blend', refatora nome do avatar, move avatar antig…

…o para pasta avatar_001
Showing 54 changed files with 16 additions and 7 deletions   Show diff stats
@@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
4 *.log 4 *.log
5 *.mp4 5 *.mp4
6 *.pyc 6 *.pyc
  7 +*.swp
7 textures/ 8 textures/
8 __pycache__ 9 __pycache__
9 extra/ 10 extra/
.gitignore.swp
No preview for this file type
1 -BLEND = avatar_Hozana_wikiLibras.blend 1 +BLEND = avatar_cartoon_v1.0.0.blend
2 BLENDER = blender 2 BLENDER = blender
3 BLUE = \33[34;5m 3 BLUE = \33[34;5m
4 CACHE = ./__pycache__ 4 CACHE = ./__pycache__
avatar_001/avatar_Hozana_wikiLibras.blend 0 → 100644
No preview for this file type
avatar_001/textures/AO_Teste__.jpg 0 → 100644

132 KB

avatar_001/textures/CORPO_text.png 0 → 100644

934 KB

avatar_001/textures/CORPO_text__06.png 0 → 100644

1020 KB

avatar_001/textures/COR_rosto.png 0 → 100644

143 Bytes

avatar_001/textures/CabelosHOZANA_CLARO_5.png 0 → 100644

1.12 MB

avatar_001/textures/Difuse_.jpg 0 → 100644

79.1 KB

avatar_001/textures/Free human face reference image front_3.jpg 0 → 100644

631 Bytes

avatar_001/textures/Free human face reference image side.jpg 0 → 100644

631 Bytes

avatar_001/textures/HOZANA_ROUPA_01.psd 0 → 100644
No preview for this file type
avatar_001/textures/HOZANA_ROUPA_01_azul_2.jpg 0 → 100644

179 KB

avatar_001/textures/Hand_Ref_by_Athey.jpg 0 → 100644

528 KB

avatar_001/textures/HozanaCOR_Cabelo_Claro.jpg 0 → 100644

331 KB

avatar_001/textures/LOGO_LAViD_01.psd 0 → 100644
No preview for this file type
avatar_001/textures/LogoSoBolasPadrao.png 0 → 100644

81.7 KB

avatar_001/textures/chooo_sock.jpg 0 → 100644

631 Bytes

avatar_001/textures/chooo_teethLower.jpg 0 → 100644

631 Bytes

avatar_001/textures/chooo_teethUpper.jpg 0 → 100644

631 Bytes

avatar_001/textures/clarear 0 → 100644
No preview for this file type
avatar_001/textures/hair_by_FMX_Resources.jpg 0 → 100644

1.24 MB

avatar_001/textures/interBoca.png 0 → 100644

19 KB

avatar_001/textures/lingua.jpg.png 0 → 100644

5.55 KB

avatar_001/textures/novaTextura2.png 0 → 100644

2.08 MB

avatar_001/textures/olho_Escuro.jpg 0 → 100644

488 KB

avatar_Hozana_wikiLibras.blend
No preview for this file type
avatar_cartoon_v1.0.0.blend 0 → 100644
No preview for this file type
@@ -8,12 +8,14 @@ getcwd = dirname(abspath(__file__)) @@ -8,12 +8,14 @@ getcwd = dirname(abspath(__file__))
8 8
9 from pyutil import printStackTrace 9 from pyutil import printStackTrace
10 10
11 -blend_path = join(getcwd, "avatar_Hozana_wikiLibras.blend") 11 +blend_path = join(getcwd, "avatar_cartoon_v1.0.0.blend")
12 main_path = join(getcwd, "libras.py") 12 main_path = join(getcwd, "libras.py")
13 restult = 0 13 restult = 0
14 14
15 try: 15 try:
16 - restult = call(["blender", "-b", blend_path, "-P", main_path, argv[1]]) 16 + # Caso seja necessário gravar logs do blender utilizar a linha de código abaixo
  17 + # restult = call(['blender', '-b', blend_path, '-P', main_path, argv[1]], stdout = open( 'bpy.log', 'w'))
  18 + restult = call(['blender', '-b', blend_path, '-P', main_path, argv[1]])
17 except: 19 except:
18 restult = printStackTrace(__file__) 20 restult = printStackTrace(__file__)
19 21
textures/AO_Teste__.jpg

132 KB

textures/CORPO_text.png

934 KB

textures/CORPO_text__06.png

1020 KB

textures/COR_rosto.png

143 Bytes

textures/CabelosHOZANA_CLARO_5.png

1.12 MB

textures/Difuse_.jpg

79.1 KB

textures/Free human face reference image front_3.jpg

631 Bytes

textures/Free human face reference image side.jpg

631 Bytes

textures/HOZANA_ROUPA_01.psd
No preview for this file type
textures/HOZANA_ROUPA_01_azul_2.jpg

179 KB

textures/Hand_Ref_by_Athey.jpg

528 KB

textures/HozanaCOR_Cabelo_Claro.jpg

331 KB

textures/LOGO_LAViD_01.psd
No preview for this file type
textures/LogoSoBolasPadrao.png

81.7 KB

textures/chooo_sock.jpg

631 Bytes

textures/chooo_teethLower.jpg

631 Bytes

textures/chooo_teethUpper.jpg

631 Bytes

textures/clarear
No preview for this file type
textures/hair_by_FMX_Resources.jpg

1.24 MB

textures/interBoca.png

19 KB

textures/lingua.jpg.png

5.55 KB

textures/novaTextura2.png

2.08 MB

textures/olho_Escuro.jpg

488 KB

@@ -27,6 +27,7 @@ def erase_all_keyframes(): @@ -27,6 +27,7 @@ def erase_all_keyframes():
27 bpy.context.scene.frame_current = bpy.context.scene.frame_start 27 bpy.context.scene.frame_current = bpy.context.scene.frame_start
28 bpy.context.scene.frame_end = bpy.context.scene.frame_start 28 bpy.context.scene.frame_end = bpy.context.scene.frame_start
29 29
  30 +# Função que define as configurações de saida
30 def outconf(): 31 def outconf():
31 erase_all_keyframes() 32 erase_all_keyframes()
32 bpy.context.scene.render.resolution_x = 640 33 bpy.context.scene.render.resolution_x = 640
@@ -36,7 +37,7 @@ def outconf(): @@ -36,7 +37,7 @@ def outconf():
36 bpy.context.scene.render.ffmpeg.format = 'MPEG4' 37 bpy.context.scene.render.ffmpeg.format = 'MPEG4'
37 bpy.context.scene.render.ffmpeg.codec = 'H264' 38 bpy.context.scene.render.ffmpeg.codec = 'H264'
38 # bpy.context.scene.render.filepath = '/tmp/' 39 # bpy.context.scene.render.filepath = '/tmp/'
39 - 40 +
40 # Otimização da renderização 41 # Otimização da renderização
41 bpy.context.scene.render.use_shadows = False 42 bpy.context.scene.render.use_shadows = False
42 bpy.context.scene.render.use_raytrace = False 43 bpy.context.scene.render.use_raytrace = False
@@ -47,12 +48,17 @@ def outconf(): @@ -47,12 +48,17 @@ def outconf():
47 bpy.context.scene.render.tile_y = 240 48 bpy.context.scene.render.tile_y = 240
48 49
49 def render_sign(userId, signName, beginFrame, endFrame): 50 def render_sign(userId, signName, beginFrame, endFrame):
50 - bpy.context.scene.render.filepath = "//users//" + str(userId)+ "//" + signName + "_" 51 + from sys import argv, path
  52 + from os.path import abspath, dirname
  53 + from pyutil import log, file_rename
  54 + getcwd = dirname(abspath(__file__))
  55 + bpy.context.scene.render.filepath = getcwd + "/users/"+ str(userId)+ "/"+ signName + "_"
51 bpy.context.scene.frame_start = beginFrame 56 bpy.context.scene.frame_start = beginFrame
52 bpy.context.scene.frame_end = endFrame 57 bpy.context.scene.frame_end = endFrame
53 - outFilename = (bpy.context.scene.render.filepath + "%0.4i-%0.4i.mp4" % (bpy.context.scene.frame_start, bpy.context.scene.frame_end)) 58 + outFilename = ("%s%0.4i-%0.4i.mp4" % (bpy.context.scene.render.filepath, bpy.context.scene.frame_start, bpy.context.scene.frame_end))
  59 + log("All frames: %i" % (endFrame))
54 bpy.ops.render.render(animation = True, write_still = False, layer = "", scene = "") 60 bpy.ops.render.render(animation = True, write_still = False, layer = "", scene = "")
55 - #file_rename(outFilename, __file__) 61 + file_rename(outFilename)
56 bpy.ops.wm.quit_blender() 62 bpy.ops.wm.quit_blender()
57 63
58 # Função que recupera o frame final do movimento 64 # Função que recupera o frame final do movimento