Post #3013: cg

πŸ“‹ Metadata

  • Author: roaoao
  • Date: 2020-02-06 20:07:04
  • Type: answer
  • Quality Score: 7/10
  • Reply to: post_03012

🏷️ Tags

modal scripting advanced solved

  • Modal Editor
  • Property Editor
  • Macro Editor
  • Python Scripting

πŸ’¬ Content

cgstudent:

C.active_operator.TRANSFORM_OT_translate.value

For Modal Ex try this instead:

C.active_operator.macros['TRANSFORM_OT_translate'].properties.value.z

Modal In works for me. Try to set custom Step in Thickness slot.

cgstudent:

i add an On cancel command that launch a menu. This work whit blender menus but when try to launch a Modal does not work

Which one Modal doesn’t work and what code do you use? Move modal tool works for me.

cgstudent:

can you please provide sample code for toggle a boolean property
and sample code for a drop down property like transform orientation proportional falloff

Where you want to toggle them? In modal operators?


❀️ 2 likes


πŸ”— View on Blender Artists