styleRemover

styleRemover v1.3
For everyone who has the self-replicating styles problem.
Your patcher or m4l-device takes ages to save and has a ridiculously large filesize?
It is probably filled with style-data which is even growing everytime you save the patcher.
This tool removes any style data from a file.
More Info: This was a bug in early Max 7 versions and has been fixed later. But for some reason, people (me included) still have the problem sometimes. My guess is that it happens when you open patchers saved with these early Max 7 versions. Please chime in if you know more..
Last week I wondered why all my patches are getting bigger and bigger over time, even when reducing objects and GUI optimizing. I've started to investigate this issue a bit more and throw almost every objects out off my patches but still no huge change in filesize. Then i ralized almost all data in the patcher is styles data. Is this still a thing in 2020? I've reduce Patches with over 25mb down to 4 just by removing styles. Almost all my patches reduced the filesize by 90%(!).
Thanks 11OLSEN for this wonderfull tool!
I'm glad that it's still useful but sad that it's still happening and has never fully enlightened by C74 :(
@HERR MARKANT If this is happening with Max 8.1.3, please contact Support so we can determine what is going on.
Tbh I'm super upset about this issue, I have this problem now for ages, and my amxd patches (started in Max7 changed in Max8) are growing and growing and the only thing I can do is to remove all styles with this wonderful tool. Today I removed 6mb style data from a 7mb m4l file via the StyleRemover!
What works, but the styles grow every time again and again I change settings in my patches. Is it really that complicated to remove all styles not used in the gui?
I wrote to the support some month ago, and the only conclusion was to start from scratch in Max8.
Am I really the only one concerned (several Mac generations, always the same) about this?
Hiya
Styles Remover 1.3 does not seem to work for me on Max 8.1.8 Mac OS 10.13.6.
The console reports:
uzi inlet: wrong message type
/ inlet: wrong mesage type
filein: {file path} cant find file
This happens for .maxpat and .amxd's.
The styles bug still happens if you copy / paste any objects from an infected patch into a new patcher. The styles history is pasted with the objects.
Any advice anyone? Opening the infected patches in Max 6 and resaving still works but you need an OS suitable of running it...
P
StyleRemover is working with 8.2.1 here.
Sounds more like a problem with uzi..
@phelankane that sounds like a problem with the filepath. Open the subpatcher of the StyleRemover and bind a [message] to the first [trigger]. Then drop file and check what's wrong with the file path.

If it's a maxpat you can easily remove the styles with a text editor. Someone posted a patcher here to do it without mxj.