Post #5476: ![](https://blenderartists.org/user_avatar/blenderartists.org/kalpit3d/48/113027

📋 Metadata

🏷️ Tags

pie-menu hotkeys advanced solved

  • Python Scripting
  • Pie Menu Editor
  • Custom conditions

💬 Content

kalpit3d:

return any(a.spaces.active.tree_type ‘SverchCustomTreeType’ for a in C.screen.areas if a.type ‘NODE_EDITOR’)

You know what? :laughing: Actually your code also wouldnt work and gives those red indication about it.
The problem is what we cant directly copy&paste this code into forum message, because this → ’ symbol will be changed. Sorry, i wasnt aware of such issue.
Direct copy&paste from forum message:

scr1scr1713×257 20 KB

How those symbols actually should look like:

scr2scr2821×199 16.1 KB

Also i tested your code and it seems what it actually will open PIE menu absolutely everywhere in case you have an sverchok nodes editor opened somewhere.
Mine code will open PIE only if you really in sverchok nodes (i.e. if your mouse are somewhere in sverchok editor window).


❤️ 3 likes


🔗 View on Blender Artists