
v9.0 (2011)
ICE シェーダ
指定された名前に一致する値を設定します。この名前に一致するエントリが存在しない場合は、その名前と値の組み合わせが自動で追加されます。その名前に一致するエントリがすでに存在する場合は、値が更新されます。
ValueMap.Set( in_name, in_value ); |
# See the example under the ValueMap.Remove method |
'
' This example demonstrates how to add a new name-value pair
' to the ValueMap by calling the Set method using a name
' that is not already defined in the ValueMap.
'
for each oShaderDef in Application.ShaderDefinitions
if (UBound(oShaderDef.Attributes.Names) > -1) then
oShaderDef.Attributes.Set "Dirty", True
aNames = oShaderDef.Attributes.Names
aValues = oShaderDef.Attributes.Values
Application.LogMessage oShaderDef.Name & " has " & UBound(aNames)+1 & " attribute(s):"
for i=0 to UBound(aNames)
Application.LogMessage vbTab & "- " & aNames(i) & " == '" & _
oShaderDef.Attributes.Get(aValues(i)) & "'"
next
exit for
end if
next
' INFO : Softimage.soft_light.1.0 has 2 attribute(s):
' INFO : - {C535FA4D-E44A-45EB-AEE0-9F9AAEA91745} == ''
' INFO : - Dirty == 'True'
|