To add a user attribute to an object, we add it via the Edit Parameter Interface.
Add a parameter to the User tab under either the Attributes or Primvars section in the RenderMan tab. The parameter must be located within the User folder and must be prefixed User Attributesをオブジェクトに追加する場合は、Edit Parameter Interfaceを介して追加します。
RenderManタブのAttributesまたはPrimvarsセクションの下にあるUserタブにパラメータを追加します。このパラメータは、Userフォルダ内にあり、読み取る場合は "ri_user_" to be read. You must also supply a Tag Value to the parameter to inform Houdini and RenderMan of the type and allow interactive edits.というプレフィックスを付ける必要があります。
HoudiniとRenderManにタイプを通知し、インタラクティブな編集を許可するには、パラメータにタグ値を指定する必要もあります。
Setting up MatteID as an Example
Create a color attribute called "ri_user_MatteID0".
The label is the UI displayed name.
Note we have used the tags field near the bottom, this is to inform Houdini and RenderMan of the RenderMan attribute. Valid types of values are listed below.
...
Valid Tag Values are listed here. These must match the expected data type of the Parameter chosen in the left hand pane called というカラーアトリビュートを作成します。
ラベルは、UIの表示名です。
下部のTagsフィールドを使用していることに注意してください。これは、HoudiniとRenderManにRenderManアトリビュートを通知するためです。有効な値のタイプは、以下のとおりです。
...
有効なタグ値は、ここにリストされています。これらは、 "Create Parameters":という左側のペインで選択したパラメータの予想されるデータタイプと一致する必要があります。
int
float
color
point
vector
normal
hpoint
matrix
string
This will emit the following to the RIB.
...
これはRIBに以下を発行します。
Attribute "user" | "color | MatteID0" | [ | 0 1 00 1 0] |