FYI,
In the SDK Docs -> C++ API Development -> Programming with the C++ API
-> Parameter Performance Optimization -> Multiple parameter access, in
the last wrong way exemple and suggested way, both exemples are wrong.
CParameterRefArray::GetValue returns a CValue, it does not set the value
to a CValue passed as reference, according to the Class documentation.
So:
CValue val;
params.GetValue( i, val );
should be:
CValue val( params.GetValue( i ) );
*However*, this is still wrong, according to the xsi_parameter.h header.
There is no such method exposed, only a :
CValue CParameterRefArray( const CString& in_scriptname, double
in_time=DBL_MAX ) const;
Will stick to the Parameter( params[i] ).GetValue() form for now..
--
guy rabiller | 3d technical director (at) LaMaison
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi