Hi Satheesh. You could include a global python variable as part of your
code that would look like:

global theMostRecentCall
theMostRecentCall = "it was X"

then when you call it the next time, include an if statement to find out
whether  "it was X" or
 "it was Y"

I haven't tested it but it seems like it should work.
Use global variables with care as their values remain through your whole
Nuke session.

If you don't want to use global variables you could always write
"it was X" to a certain text file somewhere that keeps getting over written
with "it was X"..."it was Y"

Does that help?
Pete

On Sat, Apr 20, 2013 at 5:21 AM, satheesh <
nuke-python-re...@thefoundry.co.uk> wrote:

> **
> I created two function's called X & Y..... for some testing purpose,. Want
> to assign a hot-key for those function, not sententiously but one after one.
> when i press the hot-key first my X code should be executed.
> again press the hot-key my Y code should be executed.
>
> 1. shift+f = X
> 2. shift+f = Y
>
> Some one guide me to get this work.
>
> I tried find any solution via google search,, i'm not lucky.
>
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>


-- 
-
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to