I am working on a script that needs to copy materials from one SU model to another empty one. I am currently having trouble getting textures that are copied to have the same scale as the original. The copied texture’s dimensions are tiny compared to the original.
I have found the function
SUTextureGetDimensions (SUTextureRef texture, size_t *width, size_t *height, double *s_scale, double *t_scale) which allows me to get the scale (I think) of material, but I have no way of setting it for a material (No
Note that I am not trying to apply this texture to a face - I just want to make sure the default scale of the material is like the original.