ignore object with leading dot

1.0.2

- added: GP object with name starting with `.` are ignored from "all objects" operation (renaming, numbering, sending to render scene)
  - temporarily, layer named `note` (case insensitive) are ignored as well. This should be removed in later version to keep only dot exculsion rule.
This commit is contained in:
pullusb
2022-12-19 20:15:11 +01:00
parent b6e695eef3
commit 8a5654e977
8 changed files with 214 additions and 47 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ class GPEXP_OT_add_objects_to_render(bpy.types.Operator):
# if not scn:
# self.report({'ERROR'}, 'Could not found default scene')
# return {"CANCELLED"}
export_gp_objects([o for o in context.scene.objects if o.type == 'GPENCIL' and not o.hide_get()], exclude_list=excludes, scene=scn)
export_gp_objects([o for o in context.scene.objects if o.type == 'GPENCIL' and not o.hide_get() and fn.is_valid_name(o.name)], exclude_list=excludes, scene=scn)
return {"FINISHED"}