Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/b/l/blenderpython-HEAD/scripts/addons_extern/PFluidTools032.py   blenderpython(Download)
 
            bpy.context.object.parent = empty        
            bpy.context.object.data.materials.append(mat)
 
            set_visibility(context.object)