How to do something when the user exits viewer state?

   Views 270   Replies 0   Subscribers 0
User Avatar
Member
622 posts
Joined: 8月 2019
Offline
For example, say if I have this shelf tool script:

import soptoolutils

soptoolutils.customStateTool(kwargs, 'polyextrude::1.0')
print(1)

The print(1)part will run immediately when the shelf tool is called. How could I make it run after the user exits PolyExtrude's viewer state? (Like putting it in some kind of asynchronous callback?)
  • Quick Links