How to set vector Parameter with SetModifierHdaParameter?

   109   2   1
User Avatar
Member
2 posts
Joined: April 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 - Feb. 10, 2019 16:19:32
User Avatar
Member
2 posts
Joined: April 2018
Offline
Same Problem on quaternions and color parameters.
Plugin expects float or strings only. Please help!
Peter
User Avatar
Staff
187 posts
Joined: Aug. 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!
  • Quick Links