Bug: 3dsmax - OP Menu >"Set Frame Range" doesnt work in Max 2024
### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior:

When setting frame range for asset/shot via OP menu ```Set Frame Range``` it doesnt work and frame range stays as is.

![image](https://github.com/ynput/OpenPype/assets/112623825/20e736f3-a67d-498b-827f-74ee27dedf0d)


### Expected Behavior:

```Set Frame Range``` should set scene frame range according to Database.

### Version

3.15.11-nightly.4

### What platform you are running OpenPype on?

Windows

### Steps To Reproduce:

1. Check if the ```frame range``` is not same as in Database and change it so they differ
2. use OP Menu > ```Set Frame Range``` action to fix it
3. The scene still have original wrong frame range without any change

### Are there any labels you wish to add?

- [X] I have added the relevant labels to the bug report.

### Relevant log output:

_No response_

### Additional context:

_No response_


[cuID:[OP-6244](https://app.clickup.com/t/863h2hqt3)]
diff --git a/openpype/hosts/max/api/lib.py b/openpype/hosts/max/api/lib.py
index 1d53802ecf..dbaa6e4a24 100644
--- a/openpype/hosts/max/api/lib.py
+++ b/openpype/hosts/max/api/lib.py
@@ -250,10 +250,7 @@ def reset_frame_range(fps: bool = True):
         frame_range["handleStart"]
     )
     frame_end_handle = frame_range["frameEnd"] + int(frame_range["handleEnd"])
-    frange_cmd = (
-        f"animationRange = interval {frame_start_handle} {frame_end_handle}"
-    )
-    rt.Execute(frange_cmd)
+    set_timeline(frame_start_handle, frame_end_handle)
     set_render_frame_range(frame_start_handle, frame_end_handle)
 
 
@@ -285,3 +282,10 @@ def get_max_version():
     """
     max_info = rt.MaxVersion()
     return max_info[7]
+
+
+def set_timeline(frameStart, frameEnd):
+    """Set frame range for timeline editor in Max
+    """
+    rt.animationRange = rt.interval(frameStart, frameEnd)
+    return rt.animationRange
['openpype/hosts/max/api/lib.py']