In DBT labs own words:
"DBT is a transformation workflow that lets teams quickly and collaboratively deploy analytics code following software engineering best practices like modularity, portability, CI/CD, and documentation.
Now anyone who knows SQL can build production-grade data pipelines."
Here's a little intro talk I did at the Brighton Data Forum :)
If you want to discuss DBT any further, feel free to contact me using the form below!
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
code looks like this
import bpy
#get all scene objects
objs = [i for i in bpy.data.scenes[0].objects if i.type == 'MESH']
for i in objs:
#check for objects that have one material
if len(i.material_slots)==1:
dupmat = i.material_slots[0].name
print(dupmat)
#check for duplicate names
if ".0" in dupmat:
matName = dupmat[:-4]
if matName in [i.name for i in bpy.data.materials]:
mat = bpy.data.materials[dupmat[:-4]]
i.material_slots[0].material = mat
#check for objects that have more than one material
elif len(i.material_slots)>1:
for x,y in enumerate(i.material_slots):
dupmat = i.material_slots[x].name
print(dupmat)
if ".0" in dupmat:
matName = dupmat[:-4]
if matName in [i.name for i in bpy.data.materials]:
mat = bpy.data.materials[dupmat[:-4]]
i.material_slots[x].material = mat
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Block quote
Ordered list
Unordered list
Bold text
Emphasis
Superscript
Subscript