i understand that basic stuff, but what language is that code? looks like C++ or something
Do you mean that bit I posted?
I have no idea. It's just a text file in which we rummage about with a text editor, deleting and adding things manually.
Here's some background:
There are programs for 3D rendering which use pre-made content. The users load a figure, give it a pose, add some clothing and hair (by double-clicking a preset in a library) and a nice background and then they let the program calculate lighting, reflection etc. so the end result is a nice 3D render. It's a bit like "dressing up Barbie" for adults
To create clothing for that, I model a piece of clothing in 3D, import it to the software and give it the same bone skeleton the figure has so the clothing will move with the figure.
The figure uses special deformer settings, so the muscles bulge in the right places when e.g. the forearm bends. These deformers get automatically added to the clothing as soon as the clothing is loaded - otherwise the muscle would poke through the clothing.
So, when I've finished setting up the clothing and I save it to the program's library for other people to use, I get all those deformers in the file. (The code is created by the program, I've no idea what language it uses.)
That wouldn't matter if it was just for private use, but I sell the clothing add-ons and the files I pass on shouldn't contain anything unnecessary.
So it would be great if I had a little tool through which I could run the files afterwards to get rid of those deformers. The files are plain text with the extension .cr2
I would use search-replace in my text editor but since each deformer has a different name this doesn't work.
I added such a file for you to look at. It's a small one because it doesn't contain yet all the data the final version will have. The final file will have about 22MB, that is a lot of text so you can imagine how funny it is to go over all those lines manually. And this isn't even a complicated file, there are much longer ones.
If you don't want to touch it I can understand, but if you wanted to give it a try I'd be quite happy, and also happy to provide more files to work on.