pythonvisual-studio-codenuke

How to add NUKE API to Visual Studio code?


I'm new to Python scripting in NUKE. I'm using VS code as my IDE. Question: is there any way to add a NUKE API to VS code intelsense?

*Nuke is a software made by foundry(https://www.foundry.com/products/nuke-family/nuke) used in film post productions. nuke itself has an built in IDE but it's very basic.


Solution

  • The foundry offer support on using Nuke as a Python module here : https://learn.foundry.com/nuke/content/comp_environment/script_editor/nuke_python_module.html

    Though personally, I would recommend installing a better Python Script Editor into the Nuke UI and working inside of Nuke with that - lots of what you do with Nuke's API is dependent on selecting Nodes or visually confirming your code is working as intended. I feel this is an important aspect of learning Nuke's python API.

    I use this : https://github.com/plasmax/PythonEditor

    Since it gives you tabs and is generally much nicer to use than Nuke's vanilla script editor. Later on once you've got a handle on this and want to start running Nuke batch scripts via the terminal is more the time when using an external IDE makes more sense. Good luck!