I have the following code that turns on freestyle, adds a Line-Set, and adjusts parameters for that Line-Set.
What I can't figure out is how to add a new Line-Style to a Line-Set, and adjust it's parameters.
sceneR = bpy.context.scene
freestyle = sceneR.render.layers.active.freestyle_settings
sceneR.render.use_freestyle = True
sceneR.render.line_thickness = 10
sceneR.svg_export.use_svg_export = False
freestyle.use_smoothness = False
#Set a lineset for the visible lines
LineSetV = freestyle.linesets.new('VisibleLineset')
LineSetV.select_by_visibility = False
LineSetV.select_by_edge_types = True
LineSetV.select_by_face_marks = False
LineSetV.select_by_group = False
LineSetV.select_by_image_border = False
#Set the lineset variables
LineSetV.select_edge_mark = True
LineSetV.select_crease = False
LineSetV.select_silhouette = False
LineSetV.select_border = False
LineSetV.select_contour = False
LineSetV.select_suggestive_contour = False
LineSetV.select_ridge_valley = False
LineSetV.select_external_contour = False
LineSetV.select_material_boundary = False