cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Streamline your workflows and master BIM coordination! Program starts April 28!

Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

How to get the path of texture

Not applicable
Hi,

How could I get the path of texture? I am trying to export the model by using Modeler::element, but I could not find the way to get the texture file location.

Could you help me? Thanks in advance.
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
scandi wrote:
How could I get the path of texture? I am trying to export the model by using Modeler::element, but I could not find the way to get the texture file location.Could you help me?
A body texture image is best accessed through a body material using ModelerAPI::MeshBody::GetMaterial
You can get the texture for the material using ModelerAPI::Material::GetTexture
The texture bitmap (if it has one) can be accessed from the texture using ModelerAPI::Texture::GetPixelMap
Ralph Wessel BArch
Central Innovation

View solution in original post

2 REPLIES 2
Solution
scandi wrote:
How could I get the path of texture? I am trying to export the model by using Modeler::element, but I could not find the way to get the texture file location.Could you help me?
A body texture image is best accessed through a body material using ModelerAPI::MeshBody::GetMaterial
You can get the texture for the material using ModelerAPI::Material::GetTexture
The texture bitmap (if it has one) can be accessed from the texture using ModelerAPI::Texture::GetPixelMap
Ralph Wessel BArch
Central Innovation
Not applicable
Ralph wrote:
scandi wrote:
How could I get the path of texture? I am trying to export the model by using Modeler::element, but I could not find the way to get the texture file location.Could you help me?
A body texture image is best accessed through a body material using ModelerAPI::MeshBody::GetMaterial
You can get the texture for the material using ModelerAPI::Material::GetTexture
The texture bitmap (if it has one) can be accessed from the texture using ModelerAPI::Texture::GetPixelMap
I see. Thank you!