Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Python_GUI/batchSelectedNodes/batchSelectedNodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ def batchSelectedNodes():
if userChoice == 0 : # disable Preview
myknob = currentNode.getParam('enablePreview')
myknob.setValue(False)
print 'testfalse'
print ('testfalse')
currentNode.refreshUserParamsGUI()
if userChoice == 1 : # enable Preview
myknob = currentNode.getParam('enablePreview')
myknob.setValue(True)
print 'testtrue'
print ('testtrue')
currentNode.refreshUserParamsGUI()
elif userChoice == 2 : # disable Node
myknob = currentNode.getParam('disableNode')
Expand Down
2 changes: 1 addition & 1 deletion Python_GUI/extractExrLayers/extractExrLayers.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def extractExrLayers():
# layer name #
layerName = os.path.splitext(choice)[0]

print layerName
print (layerName)

# layer channels (RGBA,RGB,XYZ,UV,A,Z) #
layerChannels = os.path.splitext(choice)[1]
Expand Down
2 changes: 1 addition & 1 deletion Python_GUI/extractImageLayers/extractImageLayers.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def extractImageLayers():
# layer name #
layerName = choice

print layerName
print (layerName)

# layer channels (RGBA,RGB,XYZ,UV,A,Z) #
layerChannels = os.path.splitext(choice)[1]
Expand Down
4 changes: 2 additions & 2 deletions Python_GUI/replacePaths/replacePaths.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def replacePaths():
newPathParamValue = newPath.getValue()

currentPath = str(currentNode.getParam('filename').get())
print 'Old path : ' + currentPath
print ('Old path : ' + currentPath)

currentPath = currentPath.replace(oldPathParamValue,newPathParamValue)
print 'New path : ' + currentPath
print ('New path : ' + currentPath)

oldReadPath = currentNode.getParam('filename').set(currentPath)
6 changes: 3 additions & 3 deletions Python_GUI/trackerToRoto/trackerToRoto.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def trackerToRoto():
keyCounter = 0

print ('point ' + str(pointIndex) + ' :')
print '---------------------------------------------------------------'
print ('---------------------------------------------------------------')

while keyCounter < (nXKeys):

Expand Down Expand Up @@ -207,8 +207,8 @@ def trackerToRoto():

keyCounter += 1

print '---------------------------------------------------------------'
print '\n'
print ('---------------------------------------------------------------')
print ('\n')
#print '---------------------------------------------------------------'
#print '***************************************************************'

Expand Down
2 changes: 1 addition & 1 deletion Python_INIT/listNatronPath/listNatronPath.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ def listNatronPath():
listIndex = 0

for p in myPath:
print ' ' + myPath[listIndex]
print (' ' + myPath[listIndex])
listIndex +=1
24 changes: 12 additions & 12 deletions Python_INIT/natronLogo/natronLogo.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#This Source Code Form is subject to the terms of the Mozilla Public
#License, v. 2.0. If a copy of the MPL was not distributed with this
#file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#Created by Fabrice Fernandez on 17/01/2018.
# #This Source Code Form is subject to the terms of the Mozilla Public
# #License, v. 2.0. If a copy of the MPL was not distributed with this
# #file, You can obtain one at http://mozilla.org/MPL/2.0/. */
# #Created by Fabrice Fernandez on 17/01/2018.

import os
import string
from NatronEngine import*
from os import*
# import os
# import string
# from NatronEngine import*
# from os import*

# LISTS NATRON PLUGINS PATHS #
# # LISTS NATRON PLUGINS PATHS #


def natronLogo():
UserPath = os.path.expanduser('~')
print ''.join(file( str(UserPath) + '/.Natron/Python_INIT/natronLogo/logo.txt'))
# def natronLogo():
# UserPath = os.path.expanduser('~')
# print (''.join(file( str(UserPath) + '/.Natron/Python_INIT/natronLogo/logo.txt')))
64 changes: 32 additions & 32 deletions init.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,54 +114,54 @@ def Project_Callback(app):


separator = ('------------------------------------------------------------')
print '\n' + '\n' + separator
print separator
print '\n'
print ('\n' + '\n' + separator)
print (separator)
print ('\n')

natronLogo()
# natronLogo()


print '\n' + '\n' + separator
print separator
print '-------------------- INIT.PY -----------------------'
print separator
print separator
print ('\n' + '\n' + separator)
print (separator)
print ('-------------------- INIT.PY -----------------------')
print (separator)
print (separator)

# loading user preferences #
#--------------------------#

print '\n'
print ('\n')
setPreferences()
print '\n'
print separator
print ('\n')
print (separator)

# check Natron's version status, version number, x32 or x64 version #
#-------------------------------------------------------------------#
print '\n'
print ('\n')
NatronStatus = natron.getNatronDevelopmentStatus()
NatronVersion = natron.getNatronVersionString()
binary = 'x64'
x32_64 = natron.is64Bit()
if x32_64 == 0 :
binary = 'x32'

print ('- NATRON ') + 'version ' + NatronVersion + ' ' + str(NatronStatus) + ' (' + binary + ')'
print '\n'
print separator
# print ('- NATRON ') + 'version ' + NatronVersion + ' ' + str(NatronStatus) + ' (' + binary + ')'
print ('\n')
print (separator)

print '\n'
print ('\n')
CPUs = natron.getNumCpus()
print ('- ') + str(CPUs) + (' CPUs available on the system')
print '\n'
print separator
# print ('- ') + str(CPUs) + (' CPUs available on the system')
print ('\n')
print (separator)

print '\n'
print '- Deep layer added to the viewer'
print '- Depth layer added to the viewer'
print '- Mask layer added to the viewer'
print '- Motion layer added to the viewer'
print '\n'
print separator
print ('\n')
print ('- Deep layer added to the viewer')
print ('- Depth layer added to the viewer')
print ('- Mask layer added to the viewer')
print ('- Motion layer added to the viewer')
print ('\n')
print (separator)


##################################################################
Expand All @@ -172,14 +172,14 @@ def Project_Callback(app):
#################### print NATRON search path ####################
listNatronPath()

print '\n' + separator
print ('\n' + separator)

PyPlugMessage = ("- PYPLUG(S) LOADED :")
print separator
print '\n' + PyPlugMessage
print (separator)
print ('\n' + PyPlugMessage)

#################### print PYPLUG list ####################
listPyPlugs()

print '\n' + separator
print separator
print ('\n' + separator)
print (separator)
133 changes: 68 additions & 65 deletions initGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
import sys
from NatronEngine import *
from NatronGui import *
from PySide.QtGui import *
try:
from qtpy.QtGui import *
except ImportError:
from PySide.QtGui import *


#####################################################################
Expand Down Expand Up @@ -136,69 +139,69 @@
NatronGui.natron.addMenuCommand('Render/Disk cache','diskCache()', QtCore.Qt.Key.Key_D, QtCore.Qt.KeyboardModifier.AltModifier)
NatronGui.natron.addMenuCommand('Render/Flipbook','flipbook()', QtCore.Qt.Key.Key_F, QtCore.Qt.KeyboardModifier.AltModifier)

from Python_GUI.snapNodes.snapNodes import *
NatronGui.natron.addMenuCommand('Tools/Node Graph/snap Nodes','snapNodes', QtCore.Qt.Key.Key_A,QtCore.Qt.KeyboardModifier)
NatronGui.natron.addMenuCommand('Tools/Node Graph/Align Nodes X','alignNodesX' )
NatronGui.natron.addMenuCommand('Tools/Node Graph/Align Nodes Y','alignNodesY' )
NatronGui.natron.addMenuCommand('Tools/Node Graph/Spread Nodes X','spreadNodesX' )
NatronGui.natron.addMenuCommand('Tools/Node Graph/Spread Nodes Y','spreadNodesY' )
# from Python_GUI.snapNodes.snapNodes import *
# NatronGui.natron.addMenuCommand('Tools/Node Graph/snap Nodes','snapNodes', QtCore.Qt.Key.Key_A,QtCore.Qt.KeyboardModifier)
# NatronGui.natron.addMenuCommand('Tools/Node Graph/Align Nodes X','alignNodesX' )
# NatronGui.natron.addMenuCommand('Tools/Node Graph/Align Nodes Y','alignNodesY' )
# NatronGui.natron.addMenuCommand('Tools/Node Graph/Spread Nodes X','spreadNodesX' )
# NatronGui.natron.addMenuCommand('Tools/Node Graph/Spread Nodes Y','spreadNodesY' )

separator = ('------------------------------------------------------------')
print '\n' + '\n' + separator
print separator
print '------------------- INITGUI.PY ---------------------'
print separator
print separator
print '\n'

print '- \'Tools\' user menu added'
print '\n'
print ' + Tools/Channel/Auto Alpha'
print ' + Tools/Channel/Extract EXR layers'
print ' + Tools/Channel/Extract Image layers'
print ' +'
print ' + Tools/Generate/PostageStamp'
print ' + Tools/Generate/Roto to tracker'
print ' + Tools/Generate/Tracker to roto'
print ' +'
print ' + Edit/Batch rename'
print ' + Edit/Connect nodes'
print ' + Edit/Reconnect nodes'
print ' + Edit/Force caching'
print ' + Edit/Invert selection'
print ' + Edit/Node Color'
print ' + Edit/Bold node'
print ' + Edit/Italic node'
print ' + Edit/Open location'
print ' + Edit/Select similar/Class'
print ' + Edit/Select similar/Color'
print ' + Edit/Remove input'
print ' +'
print ' + Tools/Other/Blending mode+'
print ' + Tools/Other/Blending mode-'
print ' + Tools/Other/Link roto to tracker'
print ' +'
print ' + Tools/Roto/Circle'
print ' + Tools/Roto/Ellipse'
print ' + Tools/Roto/Square'
print ' + Tools/Roto/Rounded square'
print ' + Tools/Roto/Rectangle'
print ' + Tools/Roto/Rounded rectangle'
print ' + Tools/Roto/Left triangle'
print ' + Tools/Roto/Right triangle'
print ' + Tools/Roto/Top triangle'
print ' + Tools/Roto/Bottom triangle'
print ' +'
print ' + Tools/Time/Read FPS'
print ' + Tools/Time/Read frame range'
print ' +'
print ' + Tools/Utils/Collect files'
print ' + Tools/Utils/Replace paths'
print ' +'
print ' + Render/Background render'
print ' + Render/Disk cache'
print ' + Render/Flipbook'


print '\n' + '\n' + separator
print separator + '\n'
print ('\n' + '\n' + separator)
print (separator)
print ('------------------- INITGUI.PY ---------------------')
print (separator)
print (separator)
print ('\n')

print ('- \'Tools\' user menu added')
print ('\n')
print (' + Tools/Channel/Auto Alpha')
print (' + Tools/Channel/Extract EXR layers')
print (' + Tools/Channel/Extract Image layers')
print (' +')
print (' + Tools/Generate/PostageStamp')
print (' + Tools/Generate/Roto to tracker')
print (' + Tools/Generate/Tracker to roto')
print (' +')
print (' + Edit/Batch rename')
print (' + Edit/Connect nodes')
print (' + Edit/Reconnect nodes')
print (' + Edit/Force caching')
print (' + Edit/Invert selection')
print (' + Edit/Node Color')
print (' + Edit/Bold node')
print (' + Edit/Italic node')
print (' + Edit/Open location')
print (' + Edit/Select similar/Class')
print (' + Edit/Select similar/Color')
print (' + Edit/Remove input')
print (' +')
print (' + Tools/Other/Blending mode+')
print (' + Tools/Other/Blending mode-')
print (' + Tools/Other/Link roto to tracker')
print (' +')
print (' + Tools/Roto/Circle')
print (' + Tools/Roto/Ellipse')
print (' + Tools/Roto/Square')
print (' + Tools/Roto/Rounded square')
print (' + Tools/Roto/Rectangle')
print (' + Tools/Roto/Rounded rectangle')
print (' + Tools/Roto/Left triangle')
print (' + Tools/Roto/Right triangle')
print (' + Tools/Roto/Top triangle')
print (' + Tools/Roto/Bottom triangle')
print (' +')
print (' + Tools/Time/Read FPS')
print (' + Tools/Time/Read frame range')
print (' +')
print (' + Tools/Utils/Collect files')
print (' + Tools/Utils/Replace paths')
print (' +')
print (' + Render/Background render')
print (' + Render/Disk cache')
print (' + Render/Flipbook')


print ('\n' + '\n' + separator)
print (separator + '\n')