Build script to compile plugins for The Foundry's NUKE.
Windows
- Requires Visual Studio 2010 – Accessible after joining the Visual Studio Dev Essentials (free). You need a version that comes with an x64 compiler (eg. Premium or Pro).
import {glob, path} from 'craftr'
import cxx from '@craftr/cxx'
import '@craftr/thefoundry-nuke'
cxx.library(
name = 'plugin',
deps = ['//@craftr/thefoundry-nuke:nuke'],
outname = 'myplugin$(ext)',
preferred_linkage = 'shared',
srcs = glob('src/*.cpp'),
static_runtime = False
)
import nuke
nuke.pluginAddPath(os.path.expanduser('~/.nuke/plugins'))
nuke.load('myplugin')
nuke.menu('Nodes').addCommand('MyPlugin/MyNode', lambda: nuke.createNode('MyPlugin_MyNode'))