Commit a9d95fa44e7c4cd5be8c04f762d61a3a72f87db3
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
.gitignore
.gitignore.swp
No preview for this file type
Makefile
No preview for this file type
132 KB
934 KB
1020 KB
143 Bytes
1.12 MB
79.1 KB
631 Bytes
631 Bytes
No preview for this file type
179 KB
528 KB
331 KB
No preview for this file type
81.7 KB
631 Bytes
631 Bytes
631 Bytes
No preview for this file type
1.24 MB
19 KB
5.55 KB
2.08 MB
488 KB
avatar_Hozana_wikiLibras.blend
No preview for this file type
No preview for this file type
controller.py
... | ... | @@ -8,12 +8,14 @@ getcwd = dirname(abspath(__file__)) |
8 | 8 | |
9 | 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 | 12 | main_path = join(getcwd, "libras.py") |
13 | 13 | restult = 0 |
14 | 14 | |
15 | 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 | 19 | except: |
18 | 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
util.py
... | ... | @@ -27,6 +27,7 @@ def erase_all_keyframes(): |
27 | 27 | bpy.context.scene.frame_current = bpy.context.scene.frame_start |
28 | 28 | bpy.context.scene.frame_end = bpy.context.scene.frame_start |
29 | 29 | |
30 | +# Função que define as configurações de saida | |
30 | 31 | def outconf(): |
31 | 32 | erase_all_keyframes() |
32 | 33 | bpy.context.scene.render.resolution_x = 640 |
... | ... | @@ -36,7 +37,7 @@ def outconf(): |
36 | 37 | bpy.context.scene.render.ffmpeg.format = 'MPEG4' |
37 | 38 | bpy.context.scene.render.ffmpeg.codec = 'H264' |
38 | 39 | # bpy.context.scene.render.filepath = '/tmp/' |
39 | - | |
40 | + | |
40 | 41 | # Otimização da renderização |
41 | 42 | bpy.context.scene.render.use_shadows = False |
42 | 43 | bpy.context.scene.render.use_raytrace = False |
... | ... | @@ -47,12 +48,17 @@ def outconf(): |
47 | 48 | bpy.context.scene.render.tile_y = 240 |
48 | 49 | |
49 | 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 | 56 | bpy.context.scene.frame_start = beginFrame |
52 | 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 | 60 | bpy.ops.render.render(animation = True, write_still = False, layer = "", scene = "") |
55 | - #file_rename(outFilename, __file__) | |
61 | + file_rename(outFilename) | |
56 | 62 | bpy.ops.wm.quit_blender() |
57 | 63 | |
58 | 64 | # Função que recupera o frame final do movimento | ... | ... |