There is a BoolProperty p defined in a custom PropertyGroup class; and p is displayed in a panel based on some conditions (say cond1).

Later in the code, I need to find out whether p was displayed in the panel or not. (And it's cumbersome to repeat the cond1 check everywhere.)

How to find this out? (The params.p gives me access to only the value of the property (True / False) and not other attributes like its visibility.)

  • $\begingroup$ Store the result of the conditional check in a instance attribute that can be accessed from the other classes. $\endgroup$ – Robert Gützkow Sep 13 at 14:08
  • $\begingroup$ @rjg The condition is dependent on the selection of EnumProperty in the same panel. So no use storing it. $\endgroup$ – Blender Dadaist Sep 13 at 14:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.