appwiki:blender3d

This is an old revision of the document!


Get Python Qt setup in Blender

UPDATE: 2020/06.23 install PySide2 for Blender 2.83

  • go to Blender install folder, D:\YourPathToThat\blender-2.83.0-windows64\2.83\python\bin
  • copy the path, and go commandline (type D: enter if your blender in D drive, C drive no need):
    • for Mac and Linux, same, just cd to that directory, and do above. the drive letter thing is just for windows, if you prefer to put app in other drive
    • run command code
      cd D:\YourPathToThat\blender-2.83.0-windows64\2.83\python\bin
      D:
      .\python.exe -m pip install PySide2
  • restart blender, you should be able to call “from PySide2 import QtWidgets,QtCore,QtGui” without issue

CG App Shortcut Compare Table

viewport Blender Maya
quad view ctrl+alt+Q space
view switch numpad,ctrl+numpad space+RMB markmenu
expert mode alt+F10 ctrl+space
max. panel ctrl+Up space
tool panel T,F6 ctrl+A
property panel N ctrl+A
view selected num. f
view all home a
- MMB centric alt centric
rotate view MMB drag alt+LMB drag
pan view shift+MMB drag alt+MMB drag
dolly view ctrl+MMB drag alt+RMB drag
add object shift+A menu shift+RMB markmenu
select all/none a double click/click none
drag select, add,remove,toggle b
LMB drag
MMB drag
default
ctrl+shift drag
ctrl drag
shift drag
paint select c
soft select o
obj/vtx,edge,face mode tab,ctrl+tab RMB markmenu, script
hide operate axis handle ctrl+space q
Action Blender Maya
wireframe on shaded object property : display : wire+all edge view menu : wireOnShade check, script
wire/shade view z 4
snap toggle shift+tab
snap menu shift+S
vtx, curve, grid snap incremental snap + grid align btn hold v, c, x
delete obj x, delete delete
Duplicate object shift+D ctrl+D, shift+D
duplicate as instance alt+D ctrl+shift+D w option
repeat last action shift+R g
hide object / unhide H, alt+H ctrl+H, shift+H
increase/decrease component selection ctrl+Num+/- shift+</>
to shell selection L
select all/none a double click/click none
continue selection ctrl+select shift + double click select
loop selection alt+select double click select
convert bet obj type alt+C
combine objects ctrl+J
separate object
center pivot ctrl+alt+shift+C
parent, unparent ctrl+p,alt+p p, shift+p
UI interaction Blender Maya
value change click drag in ui middle drag in view
ctrl+click drag in ui

Blender Special shortcut

move obj to layer m
curor/selection grid snap shift+S
select border edge ctrl+shift+alt+M
cursor to origin shift+C
zero T,R,S alt+G,alt+R,alt+S

modelling shortcut in blender

fill hole=insert face f, ctrl+f
extrude edge, face, vtx e, ctrl+LMB end click
offset=insert face i
subdivide w
insert edge loop=loop cut ctrl+R w scroll
offset edge loop ctrl+shift+R
bevel ctrl+b
cut face=knife k
merge vert menu alt+m
average vert=smooth vert
edge menu ctrl+e
face menu ctrl+f
vert menu ctrl+v
set normal to face ctrl+n

Blender 2.6

Blender is 2nd 3D application I picked up when I was starting the 3D learning. (Cinema 4D is my first 3D app, Maya is my 3rd, 3DS Max is my 4th).

Before 2.6, the Blender interface is the most struggling thing to cope with,

  • short named buttons
  • unconventional shortcut oriented operation, wield layout

But now, as 2.6 comes with a new interface, it pops up and let you use optional Maya user interaction;

Now I started to pick it up again.

Before Blender 2.6

  • number pad
  • focus on selected: Num (.)

Seperate object

  • Tab to EDIT mode, SPACE-EDIT-VERTICES-SEPARATE .. “p”

Select edge loop

  • alt + RMB click

Steps:

  1. Many surfaces need to be “cut” to make it possible to unwrap them.
  2. The edges that will be cut “Seams”. In Edit Mode, selected edges can be marked or cleared as seams, using Mesh → Edges → Mark Seam (Ctrl E)
  3. UVs → LSCM Unwrap (E Key) in the UV editor will launch LSCM unwrapping

Techniques Section

Plugins

Blender Automation

  • batch file to pass python_process_file and object_file to blender app
    batch_for_blender.bat
    @echo off
    rem Put the path of the blender folder and cd to the obj file folder
    set PATH=D:\blender-2.78a-windows64
     
    set FILENAME=Cliffs_Beach.blend
    set TARGET=Cliffs_Beach.obj
     
    blender %FILENAME% --background --python blend_to_obj.py -- %TARGET%
  • the python process for file format convert in blender
    blend_to_obj.py
    import bpy
    import sys
     
    argv = sys.argv
    argv = argv[argv.index("--") + 1:] # get all args after "--"
     
    obj_out = argv[0]
     
    bpy.ops.export_scene.obj(filepath=obj_out, axis_forward='-Z', axis_up='Y')
  • appwiki/blender3d.1629662198.txt.gz
  • Last modified: 2021/08/22 19:56
  • by ying