i really want to create shortcut by myself and im struling to find the correct code for what i want to create

this kind of code enter image description here


how do you find such information with anything inside of blender to create a shortcut ?



right click ony (almost) any option and click edit source.

the name of the operator is what you need. (n.b. I am no python expert so I may not have the right terminology or way of doing it).

enter image description here

but it takes a bit of experience knowing what to search. depending on what are your needs, you can always right click and assign them on the fly. personally I never had a reason not do so.

  • $\begingroup$ thanks but it dont work anymore on 2.8 ? $\endgroup$ – DB3D Nov 18 '18 at 10:25
  • $\begingroup$ as far as I can tell they do have it. not everyone though but not everyone has it also in blender 2.7x, it depends on the type of operations is doing. it may be easier if you could tell what exactly you need. $\endgroup$ – Virgil Sisoe Nov 18 '18 at 17:47
  • $\begingroup$ yes im trying to create shortcut with the new workspace in 2.8 , and i cant find the code anywhere , its workspace , the code fromt the old layout will not work $\endgroup$ – DB3D Nov 19 '18 at 17:27
  • $\begingroup$ if there is something specific you need sorry I didn't understand.. you need a shortcut to create a new workspace? or you just want info on how you should do it in case you need it.. nothing specific just curiosity? if is the latter, well not everything is available or at least not so easy for the end user. if it is available in blender 2.79 but not 2.80 keep in mind that blender 2.80 is still in alpha stage so something may still be missing $\endgroup$ – Virgil Sisoe Nov 19 '18 at 18:03
  • $\begingroup$ I may have found out why you don't see edit source in blender 2.80. in the user preferences under the interface tab, you need to activate the option Developer Extras. $\endgroup$ – Virgil Sisoe Nov 19 '18 at 19:29

theres few possibilities :

1) right click "copy python command" but you need to have in the user pref / interface : python tooltips / devs extra , otherwise you will no see it

2) right click "see online python reference" but you need to have in the user pref / interface : python tooltips / devs extra , otherwise you will no see it

3) see in the info editor what python code you just did

  • $\begingroup$ Not the data path, In this case it is the operator name Use "Copy Python Command". See comment on question re duplicate. $\endgroup$ – batFINGER Nov 18 '18 at 11:34

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.