Re: [SDK-DOC] Multiple Parameter Access

Date : Wed, 05 Apr 2006 12:59:09 +0200
To : XSI(at)Softimage.COM
From : Guy Rabiller <guy(at)alamaison.fr>
Subject : Re: [SDK-DOC] Multiple Parameter Access

> CValue CParameterRefArray( const CString& in_scriptname, double in_time=DBL_MAX ) const;


Should read:
CValue CParameterRefArray::GetValue( const CString& in_scriptname, double in_time=DBL_MAX ) const;


--
guy rabiller | 3d technical director (at) LaMaison


Guy Rabiller a écrit :

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







--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.