[Sidefx-houdini-list] Python callbacks

Tom Nixon Tom.Nixon at framestore.com
Wed Mar 31 07:19:14 EDT 2010


Could you not add a variable to Main() so it's Main('buttonname') in the callback?

TN

> <
 ^

----- "Simon Barrick" <simon at primalpictures.com> wrote:

> From: "Simon Barrick" <simon at primalpictures.com>
> To: sidefx-houdini-list at sidefx.com
> Sent: Wednesday, 31 March, 2010 9:58:48 AM
> Subject: [Sidefx-houdini-list] Python callbacks
>
> Does anyone know the syntax for passing the calling button path to a
> python callback?
> 
> So I can call a python callback script like this
> 
> hou.pwd().hdaModule().Main()
> 
> And then hou.pwd() gives me the path to the calling node, but I need
> the
> path to the calling button, any ideas?
> 
> In an hscript callback you get all sorts of handy local vars but what
> is
> the equivalent in python?
> 
> 
> ______________________________________________________________________
> This communication is from Primal Pictures Ltd., a company registered
> in England and Wales with registration No. 02622298 and registered
> office: 4th Floor, Tennyson House, 159-165 Great Portland Street,
> London, W1W 5PA, UK. VAT registration No. 648874577.
> 
> This e-mail is confidential and may be privileged. It may be read,
> copied and used only by the intended recipient. If you have received
> it in error, please contact the sender immediately by return e-mail or
> by telephoning +44(0)20 7637 1010. Please then delete the e-mail and
> do not disclose its contents to any person.
> This email has been scanned for Primal Pictures by the MessageLabs
> Email Security System.
> ______________________________________________________________________
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list



More information about the Sidefx-houdini-list mailing list