Problem summary
When creating a RotoMask shape with Python, the first or last point created will crash Nuke when moved via the mouse.
The crashes also happen when smoothing the roto shape.
This issue appears to be in all versions of the product.
Customer reported version
nuke.10.5v2
Customer reported platform
windows8
Steps to reproduce
1) Open Nuke
2) Paste the following code snippet into your Script Editor:
import nuke.rotopaint as rproto_node = nuke.nodes.Roto()curvesKnob = roto_node["curves"]shape = rp.Shape(curvesKnob)shape.name = "myShape1"point1 = rp.ShapeControlPoint(0, 0)shape.append(point1)point2 = rp.ShapeControlPoint(200, 0)shape.append(point2)point3 = rp.ShapeControlPoint(100, 100)shape.append(point3)curvesKnob.rootLayer.append(shape)
3) Double click on the newly created Roto node to open its properties and beziers in the viewer
4) Move the bezier in the bottom left of the Viewer (The first point created)
Result: Nuke will crash and display the crash reporter Workaround
If you need to use Python to create roto shapes, after pasting your custom shape into Nuke, Save the file (As a different version) and reopen Nuke.
The beziers should work as expected.
Reproduced by support
This bug has been reproduced in:
Nuke11.0v3 - Windows 7 - Mac10.12 - CentOS6.9
Nuke11.0v1 - Windows 7
Nuke10.5v6 - Windows 7 - Mac10.12 - CentOS6.9
Nuke10.5v1 - Windows 7
Nuke10.0v6 - Windows 7 - Mac10.12 - CentOS6.9
Nuke10.0v1 - Windows 7
Nuke9.0v9 - Windows 7 - Mac10.12 - CentOS6.9
Nuke9.0v1 - Windows 7
Nuke8.0v7 - Windows 7 - Mac10.12 - CentOS6.9
Nuke7.0v10 - Windows 7 - Mac10.12 - CentOS6.9
Earliest version tested
- This issue appears to be in all versions of the product
Expected behaviour
No crashes from Python created Roto Shapes
Actual behaviour
Nuke will crash when the first Roto Shape is moved.