[Sidefx-houdini-list] Intercepting menu buttons on Type Properties.
andy at andynicholas.com
Tue Oct 11 14:05:47 EDT 2016
I doubt there’s a hook for that then. Best suggestion I could make would be to make a copy of your HDA file before launching the dialog.
> On 11 Oct 2016, at 17:45, Sandy Sutherland <sandy.maillists at gmail.com> wrote:
> Thanks Andy,
> Will look into this - we are needing however to do stuff BEFORE the HDA
> gets saved.
> On Tue, Oct 11, 2016 at 4:21 PM, Andy Nicholas <andy at andynicholas.com>
>> I can partly solve your problem, but then, unfortunately, give you another
>> one to figure out :)
>> If you can override the “Type Properties…" menu, then you can replace it
>> with your own that calls this function:
>> promote_spare_parms=False, immediately_save=False)
>> which will open the HDA Type Properties dialog for you.
>> The only problem is that it’s not modal and will return straight away.
>> However, there maybe a (platform dependent) way of using Python to get a
>> handle for the Type Properties window so you can figure out when it’s
>> closed. In theory, it’s all PyQt now, so it’s possible that it might be
>> relatively easy to do.
>> Once you know it’s closed, you can check to see if the HDA file on disk
>> has been modified.
>>> On 11 Oct 2016, at 15:56, Sandy Sutherland <sandy.maillists at gmail.com>
>>> Hi All,
>>> Given that you can modify the menu xml filesto intercept and change any
>>> menu item in Houdini, is it possible to intercept the buttons like the
>>> Accept Button on the bottom of the Type Properties GUI?
>>> We are looking into this, to add methods for our version publishing
>>> when saving and creating HDAs.
>>> Sidefx-houdini-list mailing list
>>> Sidefx-houdini-list at sidefx.com
>> Sidefx-houdini-list mailing list
>> Sidefx-houdini-list at sidefx.com
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
More information about the Sidefx-houdini-list