Not able to get material file or respective path from API

Not able to get material file or respective path from API

Anonymous
Not applicable
528 Views
0 Replies
Message 1 of 1

Not able to get material file or respective path from API

Anonymous
Not applicable

I have created simple cube in fusion360 and applied material(Cherry) as an Appearance.
code snippet is given below.

 

adsk::core::Ptr<adsk::fusion::BRepBody> body;
adsk::core::Ptr<adsk::fusion::BRepFace> face;

bool hastexture = false;
hastexture = body->appearance()->hasTexture();
hastexture = face->appearance()->hasTexture();

 

Hastexture() property returns true value.


I tried to get the material file(.jpg) from Appearance of face/body. but i didn't got any file or path from properties
I tried to get material file from following properties.

 

face->appearance()->appearanceProperties();
body->material()->materrialProperties();
body->material()->appearance()->appearanceProperties();

 

 

Please, let me know if i am missing anything or suggest any better way to get material file or path.

529 Views
0 Replies
Replies (0)