Jump to content

aliases and properties


ava
 Share

Recommended Posts

Hi,

 

I'm trying to access the properties of a standard material via the getProperty,

setProperty and hasProperty methods, but there is some problem with aliases?

If I assign a standard material instance to the variable material and execute

 

showProperties material

 

I get the list of properties including several aliases for the maps. "diffuseMap" for example is such an alias. If I execute

 

hasProperty material #diffuseMap

 

the result is false...

 

Also the getproperty method gives as result undefined. Is there another way that I can access these alias properties?

 

Thanks in advance,

 

Alex

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...