|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: How to replace one Texture with another Texture using code » » » » Post: Re: How to replace one Texture with another Texture using code |
Print at Jan 29, 2026, 6:40:45 AM |
| Posted by Puybaret at May 28, 2016, 6:30:04 PM |
|
Re: How to replace one Texture with another Texture using code Textures in the textures catalog (i.e. Available Texture List in the user interface) are accessible by getTexturesCatalog method in preferences (see TextureChoiceComponent class) and each CatalogTexture instance has a name. To create a HomeTexture instance just use in parameter the instance of the CatalogTexture instance in the catalog with the name you want. In case you didn't know it, have also a look to Change Texture Plugin which might give you some ideas. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Jan 29, 2026, 6:40:45 AM |