This seems like a 3dsMax export keyframe script --> JSON --> Blender import script would be the best option in this case - the default import fbx doesn’t work.
JSON would look similar to :
{
"name": "cam",
"type": "Camera",
keys : [
{"frame": 44
"loc": [0,0,0.123445],
"rotation_euler":[33,33,33],
"scale": [4,4,44]},
{"frame": 128
"loc": [3,3,3.0],
"rotation":[66,33,33],
"scale": [5,4,44]},
]
}
name - name of obj, create if not found in scene
type - type of obj if needed to be created
keys - on frame, list of keys that need to be set to certain values. # the key names (rotation_euler,etc) must match in blender keyframe_insert, there are also rotation_quaternion.
import script for blender would look like:
import json
#read file into a variable imported
file = open("import.json", "r")
imported = file.read()
file.close()
#load json from file into object
imported_json = json.loads(imported)
#select object in blender.
selected = select_obj(imported_json.name) # placeholder, needs implementation
# iterate over keys
for frame in imported_json.keys: # iterates over each frame object
for key,val in frame.items(): # check syntax
selected.keyframe_insert( key, val, frame.frame)
# lookup bpy docs for 2.91 on keyframe_insert
The 3ds max import script would look something like:
#find objects (camera, etc) to export - can be by name or iterate over entire project - Camera should be fine
# create a save object {}
# go through each keyframe
# if frame does not have a keyframe , skip/continue
# store frame number in object
# store location, rotation, and scale in object.
# save the save object to a json file - open "w" for write , json.dumps(save_object)
That should get you started - Its a rough draft, but the general idea is there / in the comments.
I’ve never used 3dsMax scripting before but it looks like it can use python - http://docs.autodesk.com/3DSMAX/16/ENU/3ds-Max-Python-API-Documentation/index.html , you can use whatever language you want as long as it exports to a JSON similar to the one above.
You may want to start a thread in BA Python Scripts