0

I have a script that needs to update its GUI when an object is added or removed from a render layer. Right now, I can not find an event to trigger the GUI update using a scriptJob. What would be a good event to use?

winteralfs
  • 459
  • 6
  • 25
  • the event renderLayerManagerChange isnt working for you ? If you are using pqyt/pyside you might be able to change the hover event of the window to update. Otherwise create a button 'refresh', it is simple but works fine :D – DrWeeny May 01 '19 at 05:12
  • im using that one, but it does not seem to trigger when objects are added or removed from a render layer using the command: editRenderLayerMembers. – winteralfs May 01 '19 at 05:16
  • Im using pyside2. can you explain more about a button refresh? – winteralfs May 01 '19 at 05:18
  • just put a button refresh to refresh your gui manually – DrWeeny May 01 '19 at 05:24
  • oh i see, well the trick is, the GUIi would ideally update when the user is adding and removing objects with other tools in Maya. id like my script to dynamically follow along. it catches up as soon as a selection changes or they change layers, but there is a moment where its behind if they only add/remove an object. – winteralfs May 01 '19 at 05:28
  • yeah i understand the point maybe you should intergrate in your ui the editing layer part or even the whole renderLayer management. Otherwise you might be able to catch the "connectionChange" event – DrWeeny May 01 '19 at 06:17

0 Answers0