Re: undo event??!!

2012-08-22 Thread Ana Gomez
After all, I've created the signals for undo and redo in my PyQtForSoftimage branch. https://github.com/anuska/PyQtForSoftimage

Re: undo event??!!

2012-08-22 Thread Steven Caron
great! thanks for the contribution back.. i actually need to commit some changes i made to the events files. lets hope there isn't too much merging issues. On Wed, Aug 22, 2012 at 10:04 AM, Ana Gomez agomezalca...@gmail.com wrote: After all, I've created the signals for undo and redo in my

Re: undo event??!!

2012-08-22 Thread Ana Gomez
:D On Wed, Aug 22, 2012 at 7:49 PM, Steven Caron car...@gmail.com wrote: great! thanks for the contribution back.. i actually need to commit some changes i made to the events files. lets hope there isn't too much merging issues. On Wed, Aug 22, 2012 at 10:04 AM, Ana Gomez

Re: undo event??!!

2012-08-21 Thread Luc-Eric Rousseau
if selection changes and you don't get notified, it's definitely a bug. report it. the Selection Change command that you can set in the preference-Tools-Selection is called in that case. however, it's not called when new objects are created selected - also a bug IMHO On Tue, Aug 21, 2012 at

Re: undo event??!!

2012-08-21 Thread Ana Gomez
Writing a command on Selection Change in the preferences doesn't work. It is never called, nor when you select something nor when you undo a selection. I have to see if i can report bugs. Thanks.

Re: undo event??!!

2012-08-21 Thread Ciaran Moloney
Works here in Soft 2013 for selection and undoing selection. What string are you putting in there? Ciaran On Tue, Aug 21, 2012 at 4:56 PM, Ana Gomez agomezalca...@gmail.com wrote: Writing a command on Selection Change in the preferences doesn't work. It is never called, nor when you select

Re: undo event??!!

2012-08-21 Thread Ana Gomez
Perhaps I'm not using it right: First test: Application.LogMessage(foo) Second test: Application.MyCommand() (a custom command that prints something)

Re: undo event??!!

2012-08-21 Thread Ana Gomez
I'm using 2012

Re: undo event??!!

2012-08-21 Thread Ciaran Moloney
Also works for me in 2012 SAP and SP1. I don't have anything earlier... On Tue, Aug 21, 2012 at 5:10 PM, Ana Gomez agomezalca...@gmail.com wrote: I'm using 2012

RE: undo event??!!

2012-08-21 Thread Stephen Blair
How do you select? Select in a viewport, not in explorer. From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Ciaran Moloney Sent: August-21-12 12:23 PM To: softimage@listproc.autodesk.com Subject: Re: undo event??!! Also works for me

Re: undo event??!!

2012-08-21 Thread Ciaran Moloney
...@listproc.autodesk.com] On Behalf Of Ciaran Moloney Sent: August-21-12 12:23 PM To: softimage@listproc.autodesk.com Subject: Re: undo event??!! Also works for me in 2012 SAP and SP1. I don't have anything earlier... On Tue, Aug 21, 2012 at 5:10 PM, Ana Gomez agomezalca...@gmail.com mailto:agomezalca

Re: undo event??!!

2012-08-21 Thread Ana Gomez
Ok. I was selecting in the explorer. If I select in the viewport the command written in the 'Selection Change' is executed. Anyway, I think there is a bug when you register the event siOnSelectionChange. I think It should be fired when a selection is undone. If someone wants to reproduce... 1.

undo event??!!

2012-08-20 Thread Ana Gomez
Hi, Today I've realized that there is no event for undo :( I'm writting an interface with pyqt and I need to refresh it when the user undo something in the scene. Any ideas?? Thanks, Ana

Re: undo event??!!

2012-08-20 Thread Ciaran Moloney
perhaps a command event? On Mon, Aug 20, 2012 at 3:57 PM, Ana Gomez agomezalca...@gmail.com wrote: Hi, Today I've realized that there is no event for undo :( I'm writting an interface with pyqt and I need to refresh it when the user undo something in the scene. Any ideas?? Thanks, Ana

Re: undo event??!!

2012-08-20 Thread Ana Gomez
I was thinking of modifying the PyQtForSoftimage addon to register another event, the onEndCommand. And then, if the command is an undo in the callback, emit a new pyqt signal. But I don't like it very much. I wanted to know if someone had had this problem and his solution. On Mon, Aug 20, 2012

Re: undo event??!!

2012-08-20 Thread Steven Caron
what dont you like about that? i dont see many other ways to handle this and if i were to implement this tomorrow i would use an event s On Mon, Aug 20, 2012 at 8:41 AM, Ana Gomez agomezalca...@gmail.com wrote: I was thinking of modifying the PyQtForSoftimage addon to register another event,

Re: undo event??!!

2012-08-20 Thread Stefan Kubicek
There's quita a couple of really useful events missing in Soft. Undo being one of them, onMouseButtonPressed, onMouseButtonreleased events (up, down) and an onDeformerChanged (when painting skin weights and clicking on another deformer to paint weights for) some more. The missing Undo event

Re: undo event??!!

2012-08-20 Thread Luc-Eric Rousseau
ui is written without needing an Undo event or a Command event. Only the Edit-Undo menu has a special handshake deal with the undo manager so it can update its menu text. the way we program things internally is that we listen for value changes, delete object and new objects (siObjectAdded