Finding a material's id

Progress was made on the previous problem, but now I've hit another snag.

I understand now that the material group's name is the name of the associated material, and that material can be found by:

shape->findMaterial();

 

But what I need is the material's id string as it was in the duf file's DSON. I assumed this would be:

material->getAssetId();

 

But for some reason, this returns the material's shader.

Is there a way to get the id as it appears in the DSON that I am overlooking? I really don't want to have to parse the DSON.

Thanks to any, all.

 

Post edited by TheMysteryIsThePoint on
Sign In or Register to comment.