1
$\begingroup$

Is there a way to call an operator when a toggle is pressed? For example, suppose the users presses the X Symmetry toggle when in Sculpt mode. Is there a way to call an operator when this happens? Or do I need to use a modal operator and check every time if the toggle has changed?

$\endgroup$
  • $\begingroup$ do you want an operation that works when the use_symmetry changes, or do you want to change blender's behaviour depending on which symmetry is set? $\endgroup$ – Secrop Feb 5 '18 at 9:14
  • $\begingroup$ Well, in the second case I guess I must use a modal operator anyway, so the first one... $\endgroup$ – Antoni4040 Feb 5 '18 at 14:10
  • $\begingroup$ I would create an operator to replace the current ui operator... It's far better than keeping a modal running constantly. $\endgroup$ – Secrop Feb 6 '18 at 2:00

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.