7.9: Custom Property Sets

カスタム・プロパティ・セット

Custom properties can be organized into
custom property sets – or arrays of custom properties. A custom property set is a group of custom properties that has a name you specify.

カスタム・プロパティはカスタム・プロパティ・セット、或いはカスタム・プロパティのアレイとしてまとめることができます。カスタム・プロパティ・セットはカスタム・プロパティのまとめたもので、指定した名前を付けることができます。

When you refer to a custom property, Revolution looks for that property in the object's currently-active custom property set. When you create or set a custom property, Revolution creates it in the currently-active custom property set, or sets the value of that property in the currently-active set. One custom property set is active at any one time, but you can use array notation to get or set custom properties in sets other than the current set.

カスタム・プロパティを参照すると、レヴォルーションはオブジェクトの現在アクティブなカスタム・プロパティ・セットの中を探します。カスタム・プロパティを作成又は設定すると、レヴォルーションは現在アクティブなカスタム・プロパティ・セットに作成、或いは値を設定します。一度に一つのカスタム・プロパティをアクティブにできますが、アレイ表記を使えば現在使用中のセット以外のカスタム・プロパティ・セットを取得したり設定したりできます。

The examples in the previous section assume that you haven't created any custom property sets. If you create a custom property without creating a custom property set for it, as shown in the previous examples, the new custom property becomes part of the object's default custom property set.

前のセクションの例では、どんなカスタム・プロパティ・セットも作成できなかったはずです。【訳者:意味不明】カスタム・プロパティをカスタム・プロパティ・セットなしで作成すると、前のセクションの例の通り、新しいカスタム・プロパティはオブジェクトの初期設定カスタム・プロパティ・セットの一部となります。