[Smtk-developers] Q: default for vector value possible?

David Thompson david.thompson at kitware.com
Wed Nov 12 12:59:28 EST 2014


Hi all,

I have an attribute item defined like this

    <Double Name="axis 0" NumberOfRequiredValues="3">
      <DefaultValue>1.0,0.0,0.0</DefaultValue>
    </Double>

but when I create an instance of the attribute and examine its value, I get:

    >>> ax0 = smtk.attribute.to_concrete(att.find('axis 0'))
    >>> [ax0.value(i) for i in range(3)]
    [1.0, 1.0, 1.0]

Is there a way to provide a default for each of the required values?

	Thanks,
	David


More information about the Smtk-developers mailing list