Skip to content

Commit 4415786

Browse files
committedJul 17, 2019
update
1 parent 4a45623 commit 4415786

File tree

18 files changed

+74
-14
lines changed

18 files changed

+74
-14
lines changed
 

‎Python_GUI/autoAlpha/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ Sets alpha to 1 (full white) for selected 'Read' nodes.
1919
```
2020
from <path>.autoAlpha.autoAlpha import *
2121
NatronGui.natron.addMenuCommand('Tools/Channel/Auto Alpha','autoAlpha')
22-
```
22+
```

‎Python_GUI/backgroundRender/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ Renders current project in background.
1717

1818
```
1919
from <path>.backgroundRender.backgroundRender import *
20-
NatronGui.natron.addMenuCommand('Tools/Render/Background Render','backgroundRender')
20+
NatronGui.natron.addMenuCommand('Tools/Render/Background render','backgroundRender()')
2121
```

‎Python_GUI/collectFiles/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ Opens new folder location.
3232

3333
```
3434
from <path>.collectFiles.collectFiles import *
35-
NatronGui.natron.addMenuCommand('Tools/Utils/Collect Files','collectFiles()')
35+
NatronGui.natron.addMenuCommand('Tools/Utils/Collect files','collectFiles()')
3636
```

‎Python_GUI/connectNodes/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ Connects nodes to another one in the Node Graph.
2323

2424
```
2525
from <path>.connectNodes.connectNodes import *
26-
NatronGui.natron.addMenuCommand('Tools/Render/Disk Cache','connectNodes()', QtCore.Qt.Key.Key_D, QtCore.Qt.KeyboardModifier.AltModifier)
26+
NatronGui.natron.addMenuCommand('Tools/Node Graph/Connect nodes','connectNodes', QtCore.Qt.Key.Key_Y, QtCore.Qt.KeyboardModifier)
2727
```

‎Python_GUI/diskCache/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ Creates and process a 'DiskCache' node for the selected node.
2424

2525
```
2626
from <path>.diskCache.diskCache import *
27-
NatronGui.natron.addMenuCommand('Tools/Render/Disk Cache','diskCache()', QtCore.Qt.Key.Key_D, QtCore.Qt.KeyboardModifier.AltModifier)
27+
NatronGui.natron.addMenuCommand('Tools/Render/Disk cache','diskCache()', QtCore.Qt.Key.Key_D, QtCore.Qt.KeyboardModifier.AltModifier)
2828
```

‎Python_GUI/forceCaching/README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# forceCaching
2+
3+
Enable/disable force caching for selected nodes.
4+
5+
### HOW TO USE IT
6+
7+
* Select node(s).
8+
* Tools -> Node Graph ->Force Caching
9+
10+
### RESULT
11+
12+
Enable/disable force caching for selected nodes.
13+
14+
### SHORTCUT
15+
16+
* Ctrl+B
17+
18+
### INSTALLATION
19+
20+
* Copy 'forceCaching' folder in your .Natron folder.
21+
* Add following lines to your 'initGui.py' file, where ``<path>`` is the location of 'forceCaching' folder.
22+
23+
```
24+
from <path>.forceCaching.forceCaching import *
25+
NatronGui.natron.addMenuCommand('Tools/Node Graph/Force caching','forceCaching', QtCore.Qt.Key.Key_B, QtCore.Qt.KeyboardModifier.ControlModifier)
26+
```

‎Python_GUI/forceCaching/__init__.py

Whitespace-only changes.
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#This Source Code Form is subject to the terms of the Mozilla Public
2+
#License, v. 2.0. If a copy of the MPL was not distributed with this
3+
#file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4+
#Created by Fabrice Fernandez on 25/01/2018.
5+
6+
import NatronEngine
7+
from NatronGui import *
8+
9+
10+
# ENABLE/DISABLE FORCE CACHING FOR SELECTED NODES #
11+
12+
def forceCaching():
13+
14+
# get current Natron instance running in memory #
15+
app = natron.getGuiInstance(0)
16+
17+
# we store selected node(s) in a list #
18+
selectedNodes = app.getSelectedNodes()
19+
20+
# cycle every selected node #
21+
for n in selectedNodes:
22+
23+
cacheParam = n.getParam("forceCaching")
24+
cacheValue = n.getParam("forceCaching").get()
25+
26+
if cacheValue == False:
27+
cacheParam.set(1)
28+
29+
if cacheValue == True:
30+
cacheParam.set(0)

‎Python_GUI/mergeBlendingDown/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ Cycles through 'Merge' blending nodes.
1818

1919
```
2020
from <path>.mergeBlendingDown.mergeBlendingDown import *
21-
NatronGui.natron.addMenuCommand('Tools/Other/Blending mode+','mergeBlendingDown')
21+
NatronGui.natron.addMenuCommand('Tools/Other/Blending mode+','mergeBlendingDown', QtCore.Qt.Key.Key_Down, QtCore.Qt.KeyboardModifier)

‎Python_GUI/mergeBlendingUp/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ Cycles through 'Merge' blending modes upward.
1818

1919
```
2020
from <path>.mergeBlendingUp.mergeBlendingUp import *
21-
NatronGui.natron.addMenuCommand('Tools/Other/Blending mode+','mergeBlendingUp')
21+
NatronGui.natron.addMenuCommand('Tools/Other/Blending mode-','mergeBlendingUp', QtCore.Qt.Key.Key_Up, QtCore.Qt.KeyboardModifier)

‎Python_GUI/nodeBold_HTML/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ Sets selected nodes to be displayed in bold in the Node Graph.
1818

1919
```
2020
from <path>.nodeBold_HTML.nodeBold_HTML import *
21-
NatronGui.natron.addMenuCommand('Tools/Node Graph/Bold Nodes <HTML>','nodeBold_HTML')
21+
NatronGui.natron.addMenuCommand('Tools/Node Graph/Bold nodes <HTML>','nodeBold_HTML')
22+
```

‎Python_GUI/nodeChangeColor/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ Sets node color for selected nodes.
2020

2121
```
2222
from <path>.nodeColorChange.nodeColorChange import *
23-
NatronGui.natron.addMenuCommand('Tools/Time/Read FPS','nodeChangeFPS()')
23+
NatronGui.natron.addMenuCommand('Tools/Node Graph/Node(s) color','nodeChangeColor')
2424
```

‎Python_GUI/nodeChangeFrameRange/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ Sets frame range for selected 'Read' nodes.
2020

2121
```
2222
from <path>.nodeChangeFrameRange.nodeChangeFrameRange import *
23-
NatronGui.natron.addMenuCommand('Tools/Time/Read Frame Range','nodeChangeFrameRange()')
23+
NatronGui.natron.addMenuCommand('Tools/Time/Read frame range','nodeChangeFrameRange()')
2424
```

‎Python_GUI/nodeItalic_HTML/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ Sets selected nodes to be displayed in italic in the Node Graph.
1818

1919
```
2020
from <path>.nodeItalic_HTML.nodeItalic_HTML import *
21-
NatronGui.natron.addMenuCommand('Tools/Node Graph/Italic Nodes <HTML>','nodeItalic_HTML')
21+
NatronGui.natron.addMenuCommand('Tools/Node Graph/Italic nodes <HTML>','nodeItalic_HTML')
2222
```

‎Python_GUI/openLocation/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ Opens 'Read' or 'Write' location folder in explorer.
2222

2323
```
2424
from <path>.openLocation.openLocation import *
25-
NatronGui.natron.addMenuCommand('Tools/Node Graph/Open Location','openLocation', QtCore.Qt.Key.Key_O, QtCore.Qt.KeyboardModifier.AltModifier)
25+
NatronGui.natron.addMenuCommand('Tools/Node Graph/Open location','openLocation', QtCore.Qt.Key.Key_O, QtCore.Qt.KeyboardModifier.AltModifier)

‎Python_GUI/replacePaths/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ Replace path in 'Read' nodes.
1919

2020
```
2121
from <path>.replacePaths.replacePaths import *
22-
NatronGui.natron.addMenuCommand('Tools/Utils/Replace Paths','replacePaths()')
22+
NatronGui.natron.addMenuCommand('Tools/Utils/Replace paths','replacePaths()')

‎Python_GUI/selectSimilar/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ Select similar nodes.
1818

1919
```
2020
from <path>.selectSimilar.selectSimilar import *
21-
NatronGui.natron.addMenuCommand('Tools/Node Graph/Select similar','selectSimilar()')
21+
NatronGui.natron.addMenuCommand('Tools/Node Graph/Select similar','selectSimilar')
2222
```

‎initGui.py

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
# Tools -> Node Graph
3434
from Python_GUI.batchRenameNodes.batchRenameNodes import *
3535
from Python_GUI.connectNodes.connectNodes import *
36+
from Python_GUI.forceCaching.forceCaching import *
3637
from Python_GUI.nodeChangeColor.nodeChangeColor import *
3738
from Python_GUI.nodeBold_HTML.nodeBold_HTML import *
3839
from Python_GUI.nodeItalic_HTML.nodeItalic_HTML import *
@@ -70,6 +71,7 @@
7071

7172
NatronGui.natron.addMenuCommand('Tools/Node Graph/Batch rename','batchRenameNodes')
7273
NatronGui.natron.addMenuCommand('Tools/Node Graph/Connect nodes','connectNodes', QtCore.Qt.Key.Key_Y, QtCore.Qt.KeyboardModifier)
74+
NatronGui.natron.addMenuCommand('Tools/Node Graph/Force caching','forceCaching', QtCore.Qt.Key.Key_B, QtCore.Qt.KeyboardModifier.ControlModifier)
7375
NatronGui.natron.addMenuCommand('Tools/Node Graph/Node(s) color','nodeChangeColor')
7476
NatronGui.natron.addMenuCommand('Tools/Node Graph/Bold nodes <HTML>','nodeBold_HTML')
7577
NatronGui.natron.addMenuCommand('Tools/Node Graph/Italic nodes <HTML>','nodeItalic_HTML')
@@ -108,6 +110,7 @@
108110
print ' +'
109111
print ' + Tools/Node Graph/Batch rename'
110112
print ' + Tools/Node Graph/Connect nodes'
113+
print ' + Tools/Node Graph/Force caching'
111114
print ' + Tools/Node Graph/Node(s) Color'
112115
print ' + Tools/Node Graph/Bold nodes <HTML>'
113116
print ' + Tools/Node Graph/Italic nodes <HTML>'

0 commit comments

Comments
 (0)
Please sign in to comment.