Hello Alex,
Do you mean current date and time?
Maybe something like that then:
import Metashape, datetime
FILEPATH1 = 'C:/Alexandre/PFE/7.Couloir/Les_scène_refait/PYTHON/Export_donnée/Coordo_marker.txt'#lien fichier export
#Export des Markers
doc = Metashape.app.document
chunk = doc.chunk
T = chunk.transform.matrix
f = open(FILEPATH1, 'w')
for item in chunk.markers:
if not item.position:
continue
if chunk.crs:
v_out = chunk.crs.project(T.mulp(item.position))
else:
v_out = T.mulp(item.position)
f.write(item.label + "," + datetime.datetime.now().strftime("%Y-%m-%d,%H:%M:%S") + ",{:.7f},{:.7f},{:.7f}\n".format(v_out.x, v_out.y, v_out.z))
f.close()