Notifications
Clear all

[Closed] Callbacks hate my functions

I’m having a problem getting my functions to work in a callback. I keep getting an “Unknown Property: writems in undefined” Even though I use that function everywhere in the script.

Below is the part of the script that I register the callbacks on Save and Open. I do this exact same thing for a modselection callback in another script and it works fine.

I’ve also tried “writems()” instead of “TRI_Anim.writems()” and I get a different error.

On TRI_Anim open do
(

callbacks.addScript #filePreSave “TRI_Anim.writems()”
id:#TRI_Anim
callbacks.addScript #filePostOpen “TRI_Anim.onload__()”
id:#TRI_Anim
onload__()
)

I’ve also attached to script for viewing. (I know the formatting is awful. It was my first script, and now that I know quite a bit more I’m trying to update the functionality.)

1 Reply

See the Max Support Forum thread for a possible solution