Need help to write the code on Python (pymxs) or Maxscript which can allow to select all objects with same normals direction in 3Ds Msx.
I have this base function, but can't achieve needed result.
import pymxs
def select_same_normal_objects(normal_dir):
selection_set = []
geometry_objects = list(rt.execute('''for o in geometry where (isKindOf o GeometryClass and canConvertTo o Editable_Mesh) collect o'''))
for obj in geometry_objects:
if obj.getNormal() == normal_dir:
selection_set.append(obj)
return selection_set
Based on the comments above, specifically this statement
you could do something like:
This returns you a dictionary with all found faces per object