forked from AcademySoftwareFoundation/OpenColorIO
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added TestForDDImageVersion.cxx to FindNuke.cmake so that we can work…
…out which version of nuke we are building against. This now gets appended to the '$CMAKE_INSTALL_PREFIX/lib/nuke${Nuke_DDImageVersion}'. This makes it easier to build and run against multiple versions of nuke. Added init.py and menu.py so that the ocio nuke plugins can be setup with the NUKE_PATH searchpath, to make it easier to test and integrate into our toolchains. Updated the INSTALL file to reflect these changes.
- Loading branch information
1 parent
0077676
commit c95536a
Showing
6 changed files
with
86 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include <iostream> | ||
#include "DDImage/ddImageVersionNumbers.h" | ||
int main(int, char*[]) | ||
{ | ||
std::cout << kDDImageVersion; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
import nuke | ||
|
||
EBANNER = "OCIO Error: " | ||
|
||
try: | ||
import PyOpenColorIO as OCIO | ||
except Exception, e: | ||
print '%s%s' % (EBANNER, 'Loading OCIO python module') | ||
print e | ||
|
||
try: | ||
nuke.load('OCIOColorSpace') | ||
except Exception, e: | ||
print '%s%s' % (EBANNER, 'Loading OCIOColorSpace') | ||
print e | ||
|
||
try: | ||
nuke.load('OCIODisplay') | ||
except Exception, e: | ||
print '%s%s' % (EBANNER, 'Loading OCIODisplay') | ||
print e | ||
|
||
try: | ||
nuke.load('OCIOFileTransform') | ||
except Exception, e: | ||
print '%s%s' % (EBANNER, 'loading OCIOFileTransform') | ||
print e | ||
|
||
try: | ||
nuke.load('OCIOLogConvert') | ||
except Exception, e: | ||
print '%s%s' % (EBANNER, 'loading OCIOLogConvert') | ||
print e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
toolbar = nuke.toolbar('Nodes') | ||
|
||
if nuke.pluginExists( 'OCIOColorSpace' ): | ||
toolbar.addCommand( 'Color/OCIOColorSpace',"nuke.createNode('OCIOColorSpace')") | ||
|
||
if nuke.pluginExists( 'OCIODisplay' ): | ||
toolbar.addCommand( 'Color/OCIODisplay',"nuke.createNode('OCIODisplay')") | ||
|
||
if nuke.pluginExists( 'OCIOFileTransform' ): | ||
toolbar.addCommand( 'Color/OCIOFileTransform',"nuke.createNode('OCIOFileTransform')") | ||
|
||
if nuke.pluginExists( 'OCIOLogConvert' ): | ||
toolbar.addCommand( 'Color/OCIOLogConvert',"nuke.createNode('OCIOLogConvert')") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters