[CG Pipeline] Refactor
This commit is contained in:
parent
6538f70d54
commit
b3612d8655
23 changed files with 634 additions and 645 deletions
|
@ -20,7 +20,6 @@ import bpy
|
|||
from mathutils import Vector
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
|
||||
def fc_placement(bobj, fc_location, fc_rotation, scene_scale):
|
||||
|
@ -30,12 +29,12 @@ def fc_placement(bobj, fc_location, fc_rotation, scene_scale):
|
|||
bobj.rotation_mode = 'QUATERNION'
|
||||
# FreeCAD Quaternion is XYZW while Blender is WXYZ
|
||||
fc_rotation.insert(0, fc_rotation.pop(3))
|
||||
bobj.rotation_quaternion = (fc_rotation)
|
||||
bobj.rotation_quaternion = fc_rotation
|
||||
bobj.rotation_mode = m
|
||||
return bobj
|
||||
|
||||
|
||||
def hierarchy(bobj, hierarchy, scene_scale):
|
||||
def hierarchy_list(bobj, hierarchy, scene_scale):
|
||||
''' Blender object, dict, Blender World Scale factor. '''
|
||||
hierarchy_objs = []
|
||||
for parent_name in hierarchy.keys():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue