NurbsSurface¶
-
class
cgp_maya_utils.scene.NurbsSurface(name)¶ Bases:
cgp_maya_utils.scene.Shapenode object that manipulates a
nurbsSurfaceshape node-
classmethod
create(positions, transform=None, formU=None, formV=None, degreeU=None, degreeV=None, knotsU=None, knotsV=None, color=None, worldSpace=False, attributeValues=None, connections=None, name=None, **__)¶ create a nurbsSurface
Parameters: - positions (list[list[int, float]]) – positions of the points of the nurbsSurface
- transform (str or
cgp_maya_utils.scene.Transform) – transform under which the shape will be parented - formU (str) – formU of the nurbsSurface - default is
cgp_maya_utils.constants.ShapeFormType.OPEN - formV (str) – formU of the nurbsSurface - default is
cgp_maya_utils.constants.ShapeFormType.OPEN - degreeU (str) – degreeU of the nurbsSurface - default is
cgp_maya_utils.constants.GeometryDegree.CUBIC - degreeV (str) – degreeU of the nurbsSurface - default is
cgp_maya_utils.constants.GeometryDegree.CUBIC - knotsU (list[int]) – knotU of the nurbsSurface
- knotsV (list[int]) – knotV of the nurbsSurface
- color (list[int, float]) – color of the nurbsSurface
- worldSpace (bool) –
True: creation is in worldSpace -False: creation is in local - attributeValues (dict) – attribute values to set on the nurbsSurface
- connections (list[tuple[str]]) – connections to set on the nurbsSurface
- name (str) – name of the nurbsSurface
Returns: the created nurbsSurface
Return type:
-
classmethod