Skip to content

Commit

Permalink
Merge branch 'workshop' into RB-2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKepzie committed Oct 8, 2015
2 parents a89b561 + 8f2c327 commit 265ac09
Show file tree
Hide file tree
Showing 264 changed files with 7,275 additions and 3,603 deletions.
37 changes: 19 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ addons:
# see http://stackoverflow.com/questions/11302758/error-while-copy-constructing-boostshared-ptr-using-c11
# we use the irie/boost ppa for that purpose
- irie-boost
# kubuntu-ppa/backports contains OpenCV
- kubuntu-ppa-backports
# the PPA xorg-edgers contains cairo 1.12 (required for rotoscoping)
- xorg-edgers-ppa
# ubuntu-toolchain-r/test contains recent versions of gcc
Expand All @@ -48,6 +50,23 @@ addons:
- python-pyside
- libpyside-dev
- libshiboken-dev
coverity_scan:
# customized build script URL
# TRAVIS_REPO_SLUG: owner_name/repo_name of repository currently being built
# TRAVIS_BRANCH: name of the branch currently being built
build_script_url: https://raw.githubusercontent.com/$TRAVIS_REPO_SLUG/$TRAVIS_BRANCH/.travis-coverity-scan-build.sh
# project metadata
project:
name: $TRAVIS_REPO_SLUG
# Where email notification of build analysis results will be sent
notification_email: [email protected]
# Commands to prepare for build_command
#build_command_prepend: ./configure
# This command will be added as an argument to "cov-build" to compile
# the project for analysis
build_command: "tools/travis/build.sh"
# Pattern to match selecting branches that will run analysis
branch_pattern: coverity_scan

matrix:
exclude:
Expand Down Expand Up @@ -97,21 +116,3 @@ after_success:
after_failure:
- cat install_dependencies.log || true

addons:
coverity_scan:
# customized build script URL
# TRAVIS_REPO_SLUG: owner_name/repo_name of repository currently being built
# TRAVIS_BRANCH: name of the branch currently being built
build_script_url: https://raw.githubusercontent.com/$TRAVIS_REPO_SLUG/$TRAVIS_BRANCH/.travis-coverity-scan-build.sh
# project metadata
project:
name: $TRAVIS_REPO_SLUG
# Where email notification of build analysis results will be sent
notification_email: [email protected]
# Commands to prepare for build_command
#build_command_prepend: ./configure
# This command will be added as an argument to "cov-build" to compile
# the project for analysis
build_command: "tools/travis/build.sh"
# Pattern to match selecting branches that will run analysis
branch_pattern: coverity_scan
4 changes: 3 additions & 1 deletion App/App.pro
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ win32 {
CONFIG += app
}
CONFIG += moc
CONFIG += boost glew opengl qt expat cairo python shiboken pyside
CONFIG += boost glew opengl qt cairo python shiboken pyside
QT += gui core opengl network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets concurrent

!noexpat: CONFIG += expat

macx {
### custom variables for the Info.plist file
# use a custom Info.plist template
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Nodes group to have cleaner graphs with hidden sub-nodegraphs
- PyPlug: You can export a group as a Python plug-in and it be re-used in any other project as a single node as you would use any other plug-in
- SeExpr integration within a node: http://www.disneyanimation.com/technology/seexpr.html
- New SeNoise and SeGrain nodes based on SeExpr
- RotoPaint node with Wacom tablets support
- DopeSheet editor: This is where you can control easily keyframes and clips in time for motion graphics purposes
- Render statistics: Available in the Render menu, use this to debug complex compositions
Expand Down
3 changes: 2 additions & 1 deletion CrashReporter/CrashDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ CrashDialog::CrashDialog(const QString &filePath)
.arg("rgb(21,97,248)") // %7: keyframe value color
.arg("rgb(200,200,200)") // %8: disabled editable text
.arg("rgb(180, 200, 100)") // %9: expression background color
.arg("rgb(150,150,50")); // *10: altered text color
.arg("rgb(150,150,50") // %10: altered text color
.arg("rgb(255,195,120)")); // %11: mouse over selection color
}

setWindowTitle(tr("Natron Issue Reporter"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Returns the value of the parameter at the current timeline's time.
.. method:: NatronEngine.BooleanParam.get(frame)


:param frame: :class:`int<PySide.QtCore.int>`
:param frame: :class:`float<PySide.QtCore.float>`
:rtype: :class:`bool<PySide.QtCore.bool>`

Returns the value of the parameter at the given *frame*. This value may be interpolated
Expand Down Expand Up @@ -85,7 +85,7 @@ Same as :func:`get()<NatronEngine.BooleanParam.get>`
.. method:: NatronEngine.BooleanParam.getValueAtTime(time)


:param time: :class:`int<PySide.QtCore.int>`
:param time: :class:`float<PySide.QtCore.float>`
:rtype: :class:`bool<PySide.QtCore.bool>`

Same as :func:`get(frame)<NatronEngine.BooleanParam.get>`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Functions
^^^^^^^^^

* def :meth:`setIconFilePath<NatronEngine.ButtonParam.setIconFilePath>` (icon)
* def :meth:`trigger<NatronEngine.ButtonParam.trigger>` ()


Member functions description
Expand All @@ -37,5 +38,7 @@ a file-path relative to a path in the NATRON_PLUGIN_PATH.



.. method:: NatronEngine.ButtonParam.trigger()

Triggers the button action as though the user had pressed it.

Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ hovers the entry with the mouse.
.. method:: NatronEngine.ChoiceParam.get(frame)


:param frame: :class:`int<PySide.QtCore.int>`
:param frame: :class:`float<PySide.QtCore.float>`
:rtype: :class:`int<PySide.QtCore.int>`

Get the value of the parameter at the given *frame*.
Expand Down Expand Up @@ -130,7 +130,7 @@ Same as :func:`get()<NatronEngine.ChoiceParam.get>`
.. method:: NatronEngine.ChoiceParam.getValueAtTime(time)


:param time: :class:`int<PySide.QtCore.int>`
:param time: :class:`float<PySide.QtCore.float>`
:rtype: :class:`int<PySide.QtCore.int>`

Same as :func:`get(frame)<NatronEngine.ChoiceParam.get>`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Member functions description
.. method:: NatronEngine.ColorParam.get(frame)


:param frame: :class:`int<PySide.QtCore.int>`
:param frame: :class:`float<PySide.QtCore.float>`
:rtype: :class:`ColorTuple<NatronEngine.ColorTuple>`

Returns a :doc:`ColorTuple` of the color held by the parameter at the given *frame*.
Expand Down Expand Up @@ -150,7 +150,7 @@ Returns the value of this parameter at the given *dimension* at the current time
.. method:: NatronEngine.ColorParam.getValueAtTime(time[, dimension=0])


:param time: :class:`int<PySide.QtCore.int>`
:param time: :class:`float<PySide.QtCore.float>`
:param dimension: :class:`int<PySide.QtCore.int>`
:rtype: :class:`float<PySide.QtCore.double>`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ timeline's time.

.. method:: NatronEngine.Double2DParam.get(frame)

:param frame: :class:`float<PySide.QtCore.float>`
:rtype: :class:`Double2DTuple`

Returns a :doc:`Double2DTuple` with the [x,y] values for this parameter at the given *frame*.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ timeline's time.

.. method:: NatronEngine.Double3DParam.get(frame)

:param frame: :class:`float<PySide.QtCore.float>`
:rtype: :class:`Double3DTuple`

Returns a :doc:`Double3DTuple` with the [x,y,z] values for this parameter at the given *frame*.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Member functions description
.. method:: NatronEngine.DoubleParam.get(frame)


:param frame: :class:`int<PySide.QtCore.int>`
:param frame: :class:`float<PySide.QtCore.float>`
:rtype: :class:`float<PySide.QtCore.double>`

Returns the value of this parameter at the given *frame*. If the animation curve has an
Expand Down Expand Up @@ -165,7 +165,7 @@ Returns the value of this parameter at the given *dimension* at the current time
.. method:: NatronEngine.DoubleParam.getValueAtTime(time[, dimension=0])


:param time: :class:`int<PySide.QtCore.int>`
:param time: :class:`float<PySide.QtCore.float>`
:param dimension: :class:`int<PySide.QtCore.int>`
:rtype: :class:`float<PySide.QtCore.double>`

Expand Down
14 changes: 12 additions & 2 deletions Documentation/source/PythonReference/NatronEngine/Effect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,24 @@ Member functions description
Starts a begin/End bracket, blocking all evaluation (=renders and callback onParamChanged) that would be issued due to
a call to :func:`setValue<NatronEngine.IntParam.setValue>` on any parameter of the Effect.

Similarly all input changes will not be evaluated until endChanges() is called.

Typically to change several values at once we bracket the changes like this::
node.beginChanges()
param1.setValue(...)
param2.setValue(...)
param3.setValue(...)
param4.setValue(...)
node.endChanges() # This triggers a new render and a call to the onParamChanged callback

node.endChanges() # This triggers a new render

A more complex call:

node.beginChanges()
node.connectInput(0,otherNode)
node.connectInput(1,thirdNode)
param1.setValue(...)
node.endChanges() # This triggers a new render


.. method:: NatronEngine.Effect.endChanges()
Expand Down Expand Up @@ -465,5 +473,7 @@ should not be used.
Can be called to disable editing of the group via Natron's graphical user interface.
This is handy to prevent users from accidentally breaking the sub-graph.
This can always be reverted by editing the python script associated.
The user will still be able to see the internal node graph but will not be able to
unlock it.


Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ current time.

.. method:: NatronEngine.Int2DParam.get(frame)


:param: :class:`float<PySide.QtCore.float>`
:rtype: :class: `Int2DTuple`

Returns a :doc:`Int2DTuple` containing the [x,y] value of this parameter at
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ current time.

.. method:: NatronEngine.Int3DParam.get(frame)

:param frame: :class:`int`
:param frame: :class:`float<PySide.QtCore.float>`
:rtype: :class:`<Int3DTuple>`


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Member functions description
.. method:: NatronEngine.IntParam.get(frame)


:param frame: :class:`int<PySide.QtCore.int>`
:param frame: :class:`float<PySide.QtCore.float>`
:rtype: :class:`int<PySide.QtCore.int>`


Expand Down Expand Up @@ -173,7 +173,7 @@ Returns the value of this parameter at the given *dimension* at the current time
.. method:: NatronEngine.IntParam.getValueAtTime(time[, dimension=0])


:param time: :class:`int<PySide.QtCore.int>`
:param time: :class:`float<PySide.QtCore.float>`
:param dimension: :class:`int<PySide.QtCore.int>`
:rtype: :class:`int<PySide.QtCore.int>`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Get the value of the parameter at the current timeline's time
.. method:: NatronEngine.StringParamBase.get(frame)


:param frame: :class:`int<PySide.QtCore.int>`
:param frame: :class:`float<PySide.QtCore.float>`
:rtype: :class:`str<NatronEngine.std::string>`


Expand Down Expand Up @@ -94,7 +94,7 @@ Same as :func:`get()<NatronEngine.StringParamBase.get>`
.. method:: NatronEngine.StringParamBase.getValueAtTime(time)


:param time: :class:`int<PySide.QtCore.int>`
:param time: :class:`float<PySide.QtCore.float>`
:rtype: :class:`str<NatronEngine.std::string>`

Same as :func:`get(frame)<NatronEngine.StringParamBase.get>`
Expand Down
14 changes: 7 additions & 7 deletions Documentation/source/PythonReference/NatronGui/PyModalDialog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ To create a new :doc:`PyModalDialog`, just use the :func:`createModalDialog()<Na
dialog = app1.createModalDialog()
To show the dialog to the user, use the :func:`exec()<>` function inherited from :class:`QDialog` ::
To show the dialog to the user, use the :func:`exec_()<>` function inherited from :class:`QDialog` ::

dialog.exec()
dialog.exec_()
Note that once :func:`exec()<>` is called, no instruction will be executed until the user closed the dialog.
Note that once :func:`exec_()<>` is called, no instruction will be executed until the user closed the dialog.

The modal dialog always has *OK* and *Cancel* buttons. To query which button the user pressed, inspect the return value of the :func:`exec()<>` call::
The modal dialog always has *OK* and *Cancel* buttons. To query which button the user pressed, inspect the return value of the :func:`exec_()<>` call::

if dialog.exec():
if dialog.exec_():
#The user pressed OK
...
else:
Expand All @@ -71,11 +71,11 @@ Once all your parameters are created, create the GUI for them using the :func:`r
dialog.refreshUserParamsGUI()
dialog.exec()
dialog.exec_()
You can then retrieve the value of a parameter once the dialog is finished using the :func:`getParam(scriptName)<NatronGui.PyModalDialog.getParam>` function::

if dialog.exec():
if dialog.exec_():
intValue = dialog.getParam("myInt").get()
boolValue = dialog.getParam("myBool").get()

Expand Down
Loading

0 comments on commit 265ac09

Please sign in to comment.