File Size Plugin Idea
-
Time to dig out your Automatic for SketchUp book and brush up on those ruby skills.
There is a Texture resizer plugin.
But, yes, there isn't what you asked originally and that would be a very nice visual aid.
-
Goldilock shows you texture sizes depending on distance to camera. Has helped me a lot.
-
Don't think there is any access to the watermarks in Styles - nor figuring out the background image for photomatch scenes. I've seen models with 10-15 megapixel photos that's made the .skp obscenely large - too bad these could not be analyzed for such a plugin.
-
I wonder how images are stored in a SKP, is it as easy as a LayOut, where it's actually a ZIP file?
-
@unknownuser said:
I wonder how images are stored in a SKP, is it as easy as a LayOut, where it's actually a ZIP file?
They are binary embedded. I spend quite some time a couple of year ago reverse engineering the format. Figured out parts of it - but it's complex. You can look for image format signatures, if you know them. ..though if I remember correctly, you can scan for know image blocks and perhaps look for indicated block data size.
-
I wonder if you could do some crazy thing where each texture is deleted, the file is saved, size is calculated, and the texture is put back instantly...
That sounds really kludgy though....
-
@unknownuser said:
I wonder if you could do some crazy thing where each texture is deleted, the file is saved, size is calculated, and the texture is put back instantly...
That sounds really kludgy though....
Way to hacky for something that analyses the model. You lose all UV mapping info when you remove a material. You'd have to save a copy - but nah...
And you'd still not get access to the Style images - that is the main problem. There is not even methods to read the watermark info. -
I feel my dream slipping away...
-
Well, this is not going to cover watermarks, but for textures in materials you can always export your model as DAE. This way you end up with a folder full of textures and you can see which ones are the fatter in terms of KB.
Unfortunately I don't know of a way to find textures by filename inside a SketchUp file. You'll have to visually scan your model in search of the offending texture.
BTW, I use Goldilocks with a camera far, far away, as this way it won't list textures that are too big for a particular view, but textures that are too big in general.
Note that Goldilocks only finds textures too big in pixels... not too big in file size.
-
That DAE export thing isn't a bad idea, it would certainly be a good way to diagnose a bad model... I'll have to try that...
Advertisement