Material Transparency Image

Material Transparency Image

Anonymous
Not applicable
1,560 Views
2 Replies
Message 1 of 3

Material Transparency Image

Anonymous
Not applicable

Hello,

 

I am trying to apply different images (.png) as the transparency of my material, but I couldn`t make it work so far.

It seems that the API only allows the variation of the Transparency percentage, is that correct? There is no way to apply a Transparency map to it?

 

I looked into the API manual and there was this MaterialPropertyPathType.Transparency, but I don`t know how it works...

 

Material forTransp = GetPanelMaterial(doc, pnlMat);
forTransp.Transparency = (int)MaterialPropertyPathType.Transparency;

 

Thanks!

0 Likes
Accepted solutions (1)
1,561 Views
2 Replies
Replies (2)
Message 2 of 3

Revitalizer
Advisor
Advisor
Accepted solution

Hi vinimizobuti,

 

Material.Transparency is a value between 0 and 100.

MaterialPropertyPathType.Transparency is an enumeration which integer values may exceed this valid range.

It is referenced only one time in the RevitAPI.chm, no other entry refers to it, so I think it just had be forgotten by the DevTeam.

 

The Material creation API is not completely opened yet, especially the rendering aspects (setting textures, bump maps, opacity maps etc.).

You can create Materials and give them colors and so on, but these colors only are used for real-time displaying, not for rendering still images.

 

Join the company of people who have put this on their wishlist for years...

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





Message 3 of 3

Anonymous
Not applicable
Thanks, Revitalizer!

I`ll try to find another solution for my problem.
0 Likes