import MQSystem
    import math
    
    doc = MQSystem.getDocument()
    objects = []
    
    # Find the objects we want to move and rotate
    for oi in range(doc.numObject):
        obj = doc.object[oi]
        if obj is not None and obj.name == "obj1":
            objects.append(obj)
    
    # Move and rotate the objects
    for obj in objects:
        # Move the object down
        obj.translation.y -= 10.0  # Adjust the value to move the object to the desired height
    
        # Rotate the object
        mtx = MQSystem.newMatrix()
        # Set the matrix to rotate around the X axis by 45 degrees
続きを表示...
        mtx.set(1, 1, 1.0)
        mtx.set(1, 1, math.cos(math.radians(45)))
        mtx.set(1, 2, -math.sin(math.radians(45)))
        mtx.set(2, 1, math.sin(math.radians(45)))
        mtx.set(2, 2, math.cos(math.radians(45)))
        obj.rotation = mtx.getRotation()
code
but it does nohting basicaly no error no nohting.*
any how to fix the code?