Sketchup API : retrieve the textures size in meters

Hi all,

I am in charge to “recode” our export Ruby plug-in using the Sketchup API. In the Ruby export, to retrieve a texture dimensions in meter, I would just call "txtWidth = material.texture.width.to_m.round(8) " and it worked fine but I could not find the equivalent in the API functions.

Do you have an idea ?

Thanks for your help :slight_smile:

Multiply the the width and height values in inches by 0.0254 to obtain values in meters.

Thank you so much :slight_smile: