Skip to content

Build script for compiling C++ plugins for The Foundry's NUKE

Notifications You must be signed in to change notification settings

craftr-build/craftr-thefoundry-nuke

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

@craftr/thefoundry-nuke

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).

Example build script

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
)

Example menu.py script

import nuke
nuke.pluginAddPath(os.path.expanduser('~/.nuke/plugins'))
nuke.load('myplugin')
nuke.menu('Nodes').addCommand('MyPlugin/MyNode', lambda: nuke.createNode('MyPlugin_MyNode'))

Resources

About

Build script for compiling C++ plugins for The Foundry's NUKE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published