Nuke Pyton Modules

Is it possible to setup a module to work with nuke and use nuke functions?

I just want a function such as creating a node be called from a Python Button by importing the module. (keep the function up to date and consistent across all instances of being called).

But I get a "NameError: global name ‘nuke’ is not defined"

But the script is being executed in nuke:

import module
module.createNode()

so nuke should be a global name.

No Responses to “Nuke Pyton Modules”

Post a Comment