SnapOffsetToPointForSlicePolygons
Introduced
4.0
Description
Sets the offset of the slice-polygons operator such that the plane will pass by the given point.
Scripting Syntax
SnapOffsetToPointForSlicePolygons( Operator, Target )
Parameters
|
Parameter |
Type |
Description |
|
Operator |
Specifies the slice-polygons operator whose offset parameter has to be changed. |
|
|
Target |
Point to snap to |
Examples
VBScript Example
' The following uses slice to cut a cube then uses SnapOffsetToPointForSlicePolygons ' to make sure the slice passes by the point #7. CreatePrim "Cube", "MeshSurface" ApplyTopoOp "SlicePolygons", "cube" SetValue "cube.polymsh.slicepolygonsop.planeref", 1 SetValue "cube.polymsh.slicepolygonsop.sliceplane", 3 SetValue "cube.polymsh.slicepolygonsop.planeposx", -0.235193390644333 SetValue "cube.polymsh.slicepolygonsop.planeposy", 1.12099707576442 SetValue "cube.polymsh.slicepolygonsop.planeposz", -0.33228724744653 SetValue "cube.polymsh.slicepolygonsop.planenormal", 1 SetValue "cube.polymsh.slicepolygonsop.planerotx", -4.61581248941901 SetValue "cube.polymsh.slicepolygonsop.planeroty", 0.702946180123846 SetValue "cube.polymsh.slicepolygonsop.planerotz", 17.3091725535308 SetValue "cube.polymsh.slicepolygonsop.uiradius", 7.20741807439402 SnapOffsetToPointForSlicePolygons "cube.polymsh.slicepolygonsop", "cube.pnt[7]"
Autodesk Softimage v7.5