ifDegree1

Function

This script is designed to be used as an itemFilter for the lsThroughFilter MEL command. It filters the input list to return only NURBS surfaces (shape nodes) whose U or V Degree is 1 (linear).

Usage

First, prepare the itemFilter. You only have to do this once per Maya session.

itemFilter -byScript ifDegree1 ifDegree1;

You may then use the filter with the lsThroughFilter MEL command:

lsThroughFilter ifDegree1;

See Maya's documentation on itemFilters for more information.

Related Scripts

ifTemplate
ifVisible