« first day (2688 days earlier)      last day (653 days later) » 

12:01 PM
import re
from maya import cmds
from pymel.core.datatypes import Vector, Matrix, Point

obj = 'pCube2363'
# Get the world transformation matrix of the object
obj_matrix = Matrix(cmds.xform(obj, query=True, worldSpace=True, matrix=True))
# Iterate through all faces
for face in cmds.ls(obj + '.f[*]', flatten=True):
# Get face normal in object space
face_normals_text = cmds.polyInfo(face, faceNormals=True)[0]
# Convert to a list of floats
face_normals = [float(digit) for digit in re.findall(r'-?\d*\.\d*', face_normals_text)]
 
12:38 PM
after turning on stack trace in the history log the expanded error is now

`# Error: invalid syntax`
`# File "<maya console>", line 2`
`# import re from maya`
`# ^`
`# SyntaxError: invalid syntax #`
 

« first day (2688 days earlier)      last day (653 days later) »