How to set vector Parameter with SetModifierHdaParameter?
4165
2
1
-
- paj
- Member
- 2 posts
- Joined: 4月 2018
- Offline
Hello,
I have a digital Asset running in Max with some parameters defined as vector
parm {
name “uvScale”
label “UV Scale”
type vector
size 3
default { “12” “12” “12” }
range { -1 1 }
parmtag { “autoscope” “0000000000000000” }
}
When I try to update this Parameter with
SetModifierHdaParameter $Box002 $Box002.modifiers “uvScale” #(“12”, “12”, “12”)
I get this error:
– Unable to convert: #(“12”, “12”, “12”) to type: Float
How can I identify the single Parameters?
Thanks for any help!
Peter
Edited by paj - 2019年2月10日 16:19:32
-
- paj
- Member
- 2 posts
- Joined: 4月 2018
- Offline
Same Problem on quaternions and color parameters.
Plugin expects float or strings only. Please help!
Peter
-
- BrookeA
- スタッフ
- 387 posts
- Joined: 8月 2017
- Offline
Hi, it should be as follows:
SetModifierHdaParameter $Box002 $Box002.modifiers “uvScale” 12 12 12
I have logged a bug to add an example to the documentation for these types of parms!