ジャンプ先: 概要. 戻り値. MEL 例.

概要

int isParentOf(string $parent, string $child)

このプロシージャは、$parent が指定された DAG オブジェクトの DAG の親の場合は true を、そうでない場合は false を返します。firstParentOf() も参照してください。

戻り値

なし

MEL 例

		//	Create a NURBS sphere.

		//

		string $createdNodes[] = `sphere -constructionHistory false`;
		string $sphere = $createdNodes[0];

		//	Create a group containing a group containing the sphere.

		//

		string $group1 = `group`;
		string $group2 = `group`;

		isParentOf($sphere, $sphere);
		//	Result: 0 //


		isParentOf($group1, $sphere);
		//	Result: 1 //


		isParentOf($group2, $sphere);
		//	Result: 1 //


		isParentOf("", $group2);
		//	Result: 0 //