How to use qtevents in pyqtforsoftimage addon?

Discussions concerning programming of SOFTIMAGE©
Post Reply
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: 1774
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany
Contact:

Re: How to use qtevents in pyqtforsoftimage addon?

Post by rray » 27 Feb 2018, 11:48

Thanks for the update!
softimage resources section updated Jan 5th 2024

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests