How to use qtevents in pyqtforsoftimage addon? Topic is solved

Discussions concerning programming of SOFTIMAGE©
anhungxadieu
Posts: 175
Joined: 17 Apr 2014, 10:39
Skype: nguyenvuducthuy

How to use qtevents in pyqtforsoftimage addon?

Post by anhungxadieu » 26 Feb 2018, 09:26

Hi there,
Does anyone know how to use qt even in softimage? i want to create simple selection change event inside my widget.

anhungxadieu
Posts: 175
Joined: 17 Apr 2014, 10:39
Skype: nguyenvuducthuy

Re: How to use qtevents in pyqtforsoftimage addon?

Post by anhungxadieu » 27 Feb 2018, 11:40

[Solved]
My bad, it's very simple -->

Code: Select all

import sisignals
self.callback = sisignals.signals.siSelectionChange
sisignals.muteSIEvent("siSelectionChange", False)
self.callback.connect(self.xsiSelectionChange)

User avatar
rray
Moderator
Posts: 1532
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany

Re: How to use qtevents in pyqtforsoftimage addon?

Post by rray » 27 Feb 2018, 11:48

Thanks for the update!
Softimage Resources section (formerly known as rray.de/xsi) updated Oct 01 2017