SurfaceAttributePaintManipulator.kl¶
Types¶
SurfaceAttributePaintManipulator_PaintData (struct)¶
バージョン 1.12.0 で追加.
The SurfaceAttributePaintManipulator_PaintData defines the data collected during painting. SurfaceAttributePaintManipulator_PaintData objects are generated with each invocation of SurfaceAttributePaintManipulator.onPaint
Members¶
| PolygonMesh | mesh | |
| ScalarAttribute | attribute | |
| Integer[] | pointIds | |
| Scalar[] | oldValues | The previous values of the ScalarAttribute before this |
| Scalar[] | newValues |
Methods¶
| SurfaceAttributePaintManipulator_PaintData ( in PolygonMesh mesh, in ScalarAttribute attribute ) | |
| SurfaceAttributePaintManipulator_PaintData ( in SurfaceAttributePaintManipulator_PaintData other ) | |
| SurfaceAttributePaintManipulator_PaintData () | |
| SurfaceAttributePaintManipulator_PaintData | clone ? () |
| doAction ! () | |
| mergeIn ! ( in SurfaceAttributePaintManipulator_PaintData paintData ) | |
| undoAction ! () |
SurfaceAttributePaintManipulator (object)¶
バージョン 1.12.0 で追加.
The SurfaceAttributePaintManipulator enables the painting of a scalar vertex attribute on a PolygonMesh. These scalar attributes can be used to control the effects of custom deformers and the SurfaceAttributePaintManipulator can provide an artist workflow for defining these weightmaps.
Usage¶
- Click and drag with the Left mouse button to paint a paint stroke
- Click and drag with the Right mouse button to erase existing paint data.
- Click and drag with the Middle mouse button to smooth existing paint data.
- The mouse wheel can be used to resize the paint brush, except on platforms that do not support the mouse wheel.
- The ‘Ctrl’ modifier key can be held during a left button mouse drag to resize the brush.
- The ‘Alt’ modifier key can be held during a left button mouse drag to erase paint data.
- The ‘Shift’ modifier key can be held during a left button mouse drag to smooth paint data.
Members¶
| InlineInstance[] | targetGeometries | |
| SurfacePaintManipulator_StrokePoint[] | strokePath | The stroke points making up the current paint stroke. |
| SurfacePaintManipulator_State | state | |
| Scalar | brushSize | |
| Scalar | brushStrength | |
| Scalar | brushScaleSpeed | |
| Scalar | mouseDownBrushSize | |
| Vec2 | mouseDownScreenPos | |
| InlineMaterial | paintBrushMaterial | |
| InlineInstance | paintBrush | |
| String | portToDrive | |
| String | hostName | |
| String | graphName | |
| UInt32 | evalID | |
| String | attributeName | |
| Integer | paintMode | |
| SurfaceAttributePaintCommand | command |
Methods¶
| SurfaceAttributePaintManipulator ( in SurfaceAttributePaintManipulator other ) | |
| SurfaceAttributePaintManipulator () | |
| addTargetGeometry ! ( in InlineInstance instance ) | |
| SurfaceAttributePaintManipulator | clone ? () |
| onPaint ! ( io MouseEvent mouseEvent, in SurfacePaintManipulator_PointCollection collectedPoints ) | |
| onStrokeBegin ! ( io MouseEvent mouseEvent ) | |
| onStrokeEnd ! ( io MouseEvent mouseEvent ) | |
| setAttributeName ! ( in String attributeName ) |