"grey" disabled attributes?

danieleghisi's icon

Hello everybody,

I'm sure there's an easy way to accomplish this: how can I "disable" an attribute X (so that it become "grey" in the inspector) when, say, an attribute Y has a certain value?

It will be surely done in the setter of attribute Y, but how?

Thanks!
Daniele

Luigi Castelli's icon

Please, Daniele, before posting perform a search in the dev list.
Chances are that your question has already been covered somewhere...

Thanks.

- Luigi

danieleghisi's icon

Well I obviously _did_ perform the search; only I didn't use the "dim" keyword, but the "grey" keyword, so nothing interesting was found.
Anyway, my bad.

Sorry for bothering, and thanks Luigi for pointing out the thread!