Skip to content

Commit 4415786

Browse files
committed
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 26 additions & 0 deletions
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.
Lines changed: 30 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)

0 commit comments

Comments
 (0)