Unique texture
-
hello.
Is possible in sketchup make all the used texture an unique texture?
like a texture atlas ?
Or i must do it in a plugin? -
You can write a script to export the plain texture [texturewriter with the material applied to a temporary empty group] and reuse it in a new material with the same_name_as_the_original+NN using the same RGB, alpha etc.
You'll then have a new unused textured with a similar name.
To check is a material has been used you need to iterate every entity in the model and inside every definition.entities ! Then .uniq! the list.
Also if a material has been UV-mapped on a face you can check for that [face.mesh, UVhelper et al] and then use that face with a texturewriter to save that distorted image and then use that to create another similar material...
SO it is possible - just convoluted...
Why do you want to do it ? -
Tgi3D amorph create-texture method uses the existing texture image in creating a unique texture. You could try the trial version for 30 days for free.
Ogan
Advertisement