The function works (albeit with weird intraframe results) if you use a definite frame range, for example, .integrate((frame-5),frame) but does not work when you calculate something like .integrate(0,frame)
The below image shows the source curve (SquareWave) and the resulting integrals (Test and Test2), and the expressions used for each.
Customer reported version
nuke.n/a
Customer reported platform
Linux
Steps to reproduce
1) Open Nuke
2) Copy and paste the following code into the node graph:
Reproduced by support
This bug has been reproduced in:
Nuke11.1v1 - Windows 10 - Linux CentOS 7 - OSX High Sierra
Nuke11.0v3 - Windows 10
Nuke11.0v1 - Windows 10
Nuke10.5v7 - Windows 10
Nuke10.5v1 - Windows 10
Nuke9.0v9 - Windows 10
Nuke9.0v1 - Windows 10
Nuke8.0v7 - Windows 10
Nuke8.0v1 - Windows 10
Nuke7.0v10 - Windows 10 - Linux CentOS 7 - OSX High Sierra
Earliest version tested
- This issue appears to be in all versions of the product
Expected behaviour
The integrate function to be calculated correctly.
Actual behaviour
The integrate function is not being calculated correctly, you can tell this by the odd shape of the curve.