cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.

access custom image in carpet object

Anonymous
Not applicable
Hi all,

how to access the "use image" option inside the Archicad carpet object for example? See image for details.

Whe I access the Material using ModelerAPI, Archicad tells me, that there is no texture inside this material. My method is working fine with other elements like walls where I get the texture, if there is one:

ModelerAPI::Material material;
polygon.GetMaterial(&material);

if (material.HasTexture()) {
    ModelerAPI::Texture texture;
    material.GetTexture(&texture);
}
Thanks
Source

1.png
1 REPLY 1
Peter Baksa
Graphisoft
Graphisoft

Maybe a late answer helps others:

The Carpet object builds a model with a blank white material, and displays a picture independent from the material (picture GDL command).

Péter Baksa
Software Engineer, Library
Graphisoft SE, Budapest

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!