Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.35 KB | None | 0 0
  1. # Object Mode / Edit Mode
  2.  
  3. - オブジェクト追加: ```Shift A``` (追加位置は3Dカーソル)
  4. - 3Dカーソルをセンターに配置する: ```Shift S``` -> Cursort to Center
  5. - アクティブエリアを最大化: ```Shift Space```
  6. - 現在のTransformをデフォルトにする: ```Ctrl A(Apply)``` -> Location/Rotation/Scale/etc
  7. - 親子関係の解消: ```Alt P```
  8. - 重なったオブジェクトの選択: ```Alt RMB```
  9.  
  10. # Edit Mode
  11.  
  12. - 辺ループ選択: ```Alt RMB```
  13. - 辺リング選択: ```Ctrl Alt RMB```
  14. - 辺ツール呼び出し: ```Ctrl E```
  15. - 面ツール呼び出し: ```Ctrl F```
  16. - 扇形に面を貼る: ```E, Alt M(merge)``` -> At Center
  17. - 扇形に面を分割: ```Alt P```
  18. - シーム付け: ```Ctrl E``` -> Mark Seem
  19. - UVアンラップ: Editモード時に ```U``` -> Unwrap か Smart UV Project
  20. - 別のオブジェクトに分離: ```P``` -> S(slection)/M(By Material)/L(By loose Parts)
  21.  
  22. # Sculpt Mode / Texture Paint / Weight Paint
  23.  
  24. - ブラシサイズ変更 ```F, マウス移動, LMBで決定```
  25. - ブラシ強度(strength)変更 ```Shift F, マウス移動, LMBで決定```
  26.  
  27. # ペンタブ設定
  28.  
  29. - 下クリック -> 中クリック
  30. - 上クリック -> 右クリック
  31. - ホバークリック -> タップクリック
  32.  
  33. # Sculpting
  34.  
  35. - Pi Menu(UI Pi Menu Official)アドオン有効
  36. - Dyntopo: Relative Detail -> Constant Detail
  37.  
  38. # Viewport
  39.  
  40. - lens angle: 35 -> 50..100
  41.  
  42. # Rigging
  43.  
  44. - ボーンロール再計算: ボーン編集時 Armature -> Bone Roll -> Recalcurate Roll -> Active Bone
  45.  
  46. コントローラに不要な要素をあらかじめTransformプロパティのLocationやScaleをロックする。
  47. この時、左右のコントローラを選択しておき、ロック後にLocationやScaleを右クリックで"Copy All To Selected"を適用。
  48.  
  49.  
  50. # Animation
  51.  
  52. - インサート キーフレーム: ```I```
  53. - ポーズのコピペ: ポーズモード時 ```Ctrl C```と```Ctrl V```
  54. - ポーズの反転ペースト: ```Shift Ctrl V```
  55. - キーフレームの削除: ドープシート上の任意のキーを```RMB```で選択後```X```又はViewport上で```Alt I```
  56.  
  57. # Addon
  58.  
  59. - Addonインストール場所(Windows) ```AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons```
  60. - Moduleインストール場所(Windows) ```AppData\Roaming\Blender Foundation\Blender\2.79\scripts\modules```
  61.  
  62. community:
  63.  
  64. - Mesh: Auto Mirror
  65. - Mesh: F2
  66. - Mesh: Inset Polygon
  67. - Mesh: LoopTools
  68. - Mesh: Relax
  69. - 3D View: Layer Management
  70.  
  71. scripts:
  72.  
  73. - quickprefs
  74. - rigUI
  75.  
  76. modules:
  77.  
  78. - rigutils
  79.  
  80. # Blender Python
  81.  
  82. ```
  83. blender --background FOO.blend --python BAR.py
  84. ```
  85.  
  86. ```python
  87. import bpy
  88. import bpy.path
  89. import bmesh
  90. import mathutils
  91.  
  92. import struct
  93.  
  94.  
  95. obj_list = bpy.context.selected_objects
  96.  
  97. obj = obj_list[0]
  98.  
  99. scene = bpy.context.scene
  100. mesh = obj.to_mesh(scene, True, 'PREVIEW')
  101.  
  102. bm = bmesh.new()
  103. bm.from_mesh(mesh)
  104. bmesh.ops.triangulate(bm, faces=bm.faces)
  105. bm.to_mesh(mesh)
  106. bm.free
  107.  
  108.  
  109. diffuse_texture_path = None
  110. for mat in mesh.materials:
  111. for slot in mat.texture_slots:
  112. if slot and slot.texture and slot.use_map_color_diffuse:
  113. img = slot.texture.image
  114. diffuse_texture_path = img.filepath[2:]
  115.  
  116.  
  117. with open('foo.obj', 'w') as f:
  118.  
  119. f.write('mtllib foo.mtl\n')
  120. f.write('usemtl Textured\n')
  121.  
  122. for v in mesh.vertices:
  123. f.write('v %.6f %.6f %.6f\n' % v.co[:])
  124.  
  125. for vt in mesh.uv_layers.active.data:
  126. f.write('vt %.6f %.6f\n' % vt.uv[:])
  127.  
  128. for vn in mesh.vertices:
  129. f.write('vn %.6f %.6f %.6f' % vn.normal[:])
  130.  
  131. for poly in mesh.polygons:
  132. f.write('f ')
  133. for idx in poly.loop_indices:
  134. vi = str(mesh.loops[idx].vertex_index+1)
  135. vt = str(idx+1)
  136. vn = vi
  137. f.write(vi + '/' + vt + '/' + vn + ' ')
  138. f.write('\n')
  139.  
  140. f.write('\n')
  141.  
  142.  
  143. with open('foo.mtl', 'w') as f:
  144. f.write('newmtl Textured\n')
  145. f.write('map_Kd ' + diffuse_texture_path)
  146. f.write('\n')
  147.  
  148. ```
  149.  
  150. #
  151.  
  152. ```
  153. -DWITH_GAMEENGINE=OFF -DWITH_BULLET=OFF -DWITH_OPENCOLLADA=OFF -DWITH_INTERNATIONAL=OFF -DWITH_CYCLES=OFF -DWITH_FREESTYLE=OFF -DWITH_OPENCOLORIO=OFF -DWITH_OPENIMAGEIO=OFF -DWITH_IMAGE_CINEON=OFF -DWITH_IMAGE_DDS=OFF -DWITH_IMAGE_HDR=OFF -DWITH_IMAGE_OPENEXR=OFF -DWITH_IMAGE_OPENJPEG=OFF -DWITH_IMAGE_TIFF=OFF -DWITH_OPENAL=OFF -DWITH_SDL=OFF -DWITH_CODEC_AVI=OFF -DWITH_CODEC_FFMPEG=OFF -DWITH_LZMA=OFF -DWITH_LZO=OFF -DWITH_PYTHON_INSTALL_NUMPY=OFF -DWITH_MOD_REMESH=OFF -DWITH_MOD_FLUID=OFF
  154. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement