We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ac9af0 commit 90b2afcCopy full SHA for 90b2afc
scripts/04_3d_concepts/modeling/read_write_normal_tag_r13.py
@@ -100,6 +100,10 @@ def main():
100
if not isinstance(op, c4d.PolygonObject):
101
raise TypeError("op is not a c4d.PolygonObject.")
102
103
+ # Checks if the selected polygon object has some polygons
104
+ if op.GetPolygonCount() == 0:
105
+ raise ValueError("The the selected object, don't have any polygon to host normal data.")
106
+
107
# Creates a normal tag
108
tag = CreateNormalTag(op)
109
@@ -123,4 +127,4 @@ def main():
123
127
124
128
125
129
if __name__ == "__main__":
126
- main()
130
+ main()
0 commit comments