Notifications
Clear all

[Closed] Trouble making a script work as a macroscript

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.

2 Replies

Yeah, I had bit of tread trouble too :),
Thanks for the reply however we are already setting it up in a similar way but it still seems to ignor the callback? It works fine when you run it as a .ms file.

Have you ever had this problem before because it has happened to me a few times and is kind of frustrating. You may set up a script in the editor window and evaluate it with everything working fine but as it is turned into a macroscript it stops working properly. Mind you this does only seem to happen in about 5% of cases but when it does, it is pretty anoying because it means to run the script people have to go – run script and then track down the right script instead of just clicking a button.

Hi there,
Just wondering if anyone could help out, we are having a little trouble getting a script to work as a macroscript. It seems to work fine if it is used as a standard script (.ms style) but when it is turned into a macroscript it starts screwing up?? It seems as though the callback can’t access the “main.autotransform…”, but like i said it works fine as a standard script.

[b]nrf = newrolloutfloater “Naff Animation Toolz” 200 60
global setCallbacks, delCallbacks, autoTransform

rollout main “Tools”
([/b]
fn setCallbacks = (callbacks.addScript #selectionSetChanged “main.autoTransform selection” id:#autoTransform)

If anyone could help out it would be much appreciated
Thanks,
Pete