forked from giovannigalli/UASmachine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheasyFun.py
More file actions
26 lines (18 loc) · 841 Bytes
/
easyFun.py
File metadata and controls
26 lines (18 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
##########################################################################################
import bpy
##########################################################################################
#easy access functions
def duplicate():
bpy.ops.object.duplicate()
def translate(x,y,z):
bpy.ops.transform.translate(value=(x,y,z))
def rotate(value,x,y,z):
bpy.ops.transform.rotate(value=value, axis=(x,y,z))
def resize(vx,vy,vz,cx,cy,cz):
bpy.ops.transform.resize(value=(vx,vy,vz), constraint_axis=(cx,cy,cz))
def select(what): #deselecting all objects
if what == "none":
bpy.ops.object.select_all(action='DESELECT')
if what == "all":
bpy.ops.object.select_all(action='SELECT')
##########################################################################################