particleExists string
particleExists は 「元に戻す」が可能、「照会」が不可能、「編集」が不可能 です。
このコマンドは、指定した名前のパーティクルまたはソフト オブジェクトが存在するかどうか照会するために使用します。トランスフォーム名とシェイプ名のどちらでも使用できるほか、ソフト オブジェクト名も使用可能です。boolean | 指定した名前のパーティクル オブジェクトかソフト オブジェクトが存在する場合は true。存在しない場合は false を返します。 |
// If the object does not exist then false (0) is returned file -f -new; particleExists particleShape1; // Result: 0 // // Create a particle shape and then querying for // it will return true (1) emitter; // Result: emitter1 // particle; // Result: particle1 particleShape1 // connectDynamic -em emitter1 particle1; // Result: particleShape1 // particleExists particleShape1; // Result: 1 // // You may also query using the transform name particleExists particle1; // Result: 1 // // The name of a soft body object can be used to query as well polySphere -r 1 -sx 20 -sy 20 -ax 0 1 0 -tx 2 -ch 1; // Result: pSphere1 polySphere1 // soft -c; // Result: pSphere1Particle // particleExists pSphere1Particle; // Result: 1 //