string firstParentOf(string $dagObject)
なし
変数名 | 変数型 | 説明 |
---|---|---|
$dagObject | string | 最初の DAG ペアレントを返すオブジェクトです。 |
// Create a NURBS sphere. // string $createdNodes[] = `sphere -constructionHistory false`; string $sphere = $createdNodes[0]; // Create a group containing the sphere. // string $group = `group`; // Use firstParentOf() to get the parent of the sphere. This should be // the name of the group. // string $firstParentOfSphere = firstParentOf($sphere); if (isSameObject($group, $firstParentOfSphere)) print("// Success!\n"); // Success!