Nodes user data (mentalray)
Liens utiles
Activer les nodes
Créez un fichier userdata.mi dans:
C:\Program Files\Autodesk\Maya20xx\mentalray\include
Ajoutez les lignes suivante au fichier:
$ifndef "userdata_mi_included"
set "userdata_mi_included" "true"
min version "3.7.53"
max version "3.9.99"
declare data
"mib_data_bool"
(
string "name",
boolean "value"
)
version 1
end declare
declare data
"mib_data_int"
(
string "name",
integer "value"
)
version 1
end declare
declare data
"mib_data_scalar"
(
string "name",
scalar "value"
)
version 1
end declare
declare data
"mib_data_vector"
(
string "name",
vector "value"
)
version 1
end declare
declare data
"mib_data_color"
(
string "name",
color "value"
)
version 1
end declare
declare data
"mib_data_string"
(
string "name",
string "value"
)
version 1
end declare
declare data
"mib_data_texture"
(
string "name",
color texture "value"
)
version 1
end declare
declare data
"mib_data_shader"
(
string "name",
shader "value"
)
version 1
end declare
declare data
"mib_data_bool_array"
(
array string "names",
array boolean "values"
)
version 1
end declare
declare data
"mib_data_int_array"
(
array string "names",
array integer "values"
)
version 1
end declare
declare data
"mib_data_scalar_array"
(
array string "names",
array scalar "values"
)
version 1
end declare
declare data
"mib_data_vector_array"
(
array string "names",
array vector "values"
)
version 1
end declare
declare data
"mib_data_color_array"
(
array string "names",
array color "values"
)
version 1
end declare
declare data
"mib_data_string_array"
(
array string "names",
array string "values"
)
version 1
end declare
declare data
"mib_data_texture_array"
(
array string "names",
array color texture "values"
)
version 1
end declare
declare data
"mib_data_shader_array"
(
array string "names",
array shader "values"
)
version 1
end declare
declare shader
boolean
"mib_data_get_bool"
(
string "name",
boolean "default"
)
version 1
end declare
declare shader
integer
"mib_data_get_int"
(
string "name",
integer "default"
)
version 1
end declare
declare shader
scalar
"mib_data_get_scalar"
(
string "name",
scalar "default"
)
version 1
end declare
declare shader
vector
"mib_data_get_vector"
(
string "name",
vector "default"
)
version 1
end declare
declare shader
color
"mib_data_get_color"
(
string "name",
color "default"
)
version 1
end declare
declare shader
string
"mib_data_get_string"
(
string "name",
string "default"
)
version 1
end declare
declare shader
color texture
"mib_data_get_texture"
(
string "name",
color texture "default"
)
version 1
end declare
declare shader
shader
"mib_data_get_shader"
(
string "name",
shader "default"
)
version 1
end declare
declare shader
boolean
"mib_data_get_shader_bool"
(
string "name",
boolean "default"
)
version 1
end declare
declare shader
integer
"mib_data_get_shader_int"
(
string "name",
integer "default"
)
version 1
end declare
declare shader
scalar
"mib_data_get_shader_scalar"
(
string "name",
shader "default"
)
version 1
end declare
declare shader
vector
"mib_data_get_shader_vector"
(
string "name",
vector "default"
)
version 1
end declare
declare shader
color
"mib_data_get_shader_color"
(
string "name",
shader "default"
)
version 1
end declare
$endif #if not "userdata_mi_included"
Créer un node
Il suffit maintenant de taper:
createNode mib_data_scalar
Pour créer un node.
Dernière mise à jour : jeu. 07 mai 2020