It's a python keyword:
http://www.secnetix.de/olli/Python/lambda_functions.hawk
On 10/24/2016 10:27 AM, Daniel Hartlehnert wrote:
Hey,
that makes perfect sense, thank you.
Is „lambda“ a reserved keyword for that, or was that your example and
it can be enything?
Am 23.10.2016 um 21:56
Hey,
that makes perfect sense, thank you.
Is „lambda“ a reserved keyword for that, or was that your example and it can be
enything?
> Am 23.10.2016 um 21:56 schrieb Frank Rueter|OHUfx :
>
> In python you call (i.e. execute) a function by calling it's name followed by
>
In python you call (i.e. execute) a function by calling it's name
followed by arguments in brackets:
e.g.:
myFunction()
"myFunction" without the brackets is the actual function object. You can
reference it by using it's name without brackets, e.g.:
refToFunction = myFunction
Then later,
Also your quotes on the end of line are not the same '‘
On Sat, 22 Oct 2016 09:50:15 -0400, Daniel Hartlehnert
wrote:
Ok, just as i sent the follow-up question, your answer comes in, spooky
:O
Am 22.10.2016 um 15:27 schrieb Justin GD :
You need
Ok, just as i sent the follow-up question, your answer comes in, spooky :O
> Am 22.10.2016 um 15:27 schrieb Justin GD :
>
> You need to put it as a string when you have arguments in the function; So it
> doesn't execute when Nuke starts, but only when the user click on
I already tried to start Nuke from the terminal mode but didn’t know how to
make it work. Thanks for the link!
Seeing the detailed error message now, it turns out it was some indentation
error in dh_pycode.py
There is one follow-up thing i am wondering about though:
When calling the function
You need to put it as a string when you have arguments in the function; So
it doesn't execute when Nuke starts, but only when the user click on the
menu.
nuke.menu("Nodes").addCommand("User/FiletypeConverter",
'dh_pycode.fileconverter(my_args)', '‘)
No need to put it as a string when there is no
Don't you have to pass dh_pycode.fileconverter as a string?
nuke.menu("Nodes").addCommand("User/FiletypeConverter",
'dh_pycode.fileconverter', '‘)
--
Bruno-Pierre Jobin
> On Oct 22, 2016, at 7:08 AM, Daniel Hartlehnert wrote:
>
>
You need to launch Nuke in terminal mode so we can see exactly the error.
You can follow the doc for that :
http://help.thefoundry.co.uk/nuke/content/getting_started/installation/launching_nuke_mac.html
Alternatively, you might be able to see it when you click "show more", in
the pop up error
Hi Justin,
i am on OS X, i don’t see any terminal when starting Nuke.
I commented out every line in dh_pycode.py, but still i get the same error.
> Am 22.10.2016 um 13:28 schrieb Justin GD :
>
> Hi Daniel,
>
> Can you send the full error message ? In your terminal, you
Hi Daniel,
Can you send the full error message ? In your terminal, you should have the
error line / file indicated.
This is most likely an error in your dh_pycode file.
Cheers,
Justin
2016-10-22 12:08 GMT+01:00 Daniel Hartlehnert :
> Hi,
>
> in my .nuke folder i have a text file
11 matches
Mail list logo