change script name of an existing object with message in thispatcher

ViGii's icon

Hello,

I would like to know how I can change a script name of an existing objet with a message through thispatcher ?
Something like, script rename toto1 toto2

Thank you :)

vichug's icon
Max Patch
Copy patch and select New From Clipboard in Max.

it's odd but it's easy ! using "script send x varname y" or replacing send with sendbox :

ViGii's icon

Oh super !!! I have been looking for that all day long...

Than you a lot !

chapelier fou's icon

Is there any way to change the 'short name' in max for live devices ?

chapelier fou's icon

I just Googled this precise question and, oh, what a classic situation, that lead me to this topic where I already asked this two years ago.... :-)

No way to change the 'short name' in max for live ?

TFL's icon

You can by using the hidden _parameter_shortname message, but this is unsupported by Live and can break automation, mapping, maybe undo possibility and/or other things for that parameter. Same when changing any of the parameter-related attributes, all marked as "(hidden)". They aren't meant to be changed, but can still be by sending a message with their name prefixed with `_paramater_`.

You can also know their name by selecting one of these attributes in the inspector, hit CMD+C or CTRL+V, create a comment or message box, and then paste. You'll get a json string with the actual attribute name in it.