Hi Songqiong
sadly I'm still on 2012.SAP

Ran


On Tue, May 21, 2013 at 10:11 PM, Songqiong Yang <
songqiong.y...@autodesk.com> wrote:

> Hi Ran,
> Which Softimage version are you using?
>
> Since 2013 SP1, there're two new C++ APIs introduced, to allow the
> creation of paramdef with a specified classification.
>
> 1.      Factory::CreateParamDef
> CreateParamDef<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1Factory.html#a3badfe123fc78a4353347e7c2de0d270>
> (const CString<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CString.html>
> &in_scriptname, CValue::DataType<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CValue.html#ad8ed01ff3ff33333d8e19db4d2818bb6>
> in_type, siParamClassification<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/namespaceXSI.html#a8f0a8fe3a0669ff112ec8be6075c9f92>
> in_classification, INT in_capabilities, const CString<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CString.html>&in_name,
> const CString<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CString.html>
> &in_description, const CValue<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CValue.html>
> &in_default, const CValue<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CValue.html>
> &in_min, const CValue<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CValue.html>
> &in_max, const CValue<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CValue.html>
> &in_suggestedmin, constCValue<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CValue.html>
> &in_suggestedmax, CStatus<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CStatus.html>
> *pst=0)
>
>
> 2.       CustomProperty::AddParameter
>
> AddParameter<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CustomProperty.html#a3cd8cb29aea12aad508cfc2d623dc836>
> (const CString<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CString.html>
> &in_scriptname, CValue::DataType<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CValue.html#ad8ed01ff3ff33333d8e19db4d2818bb6>
> in_type, siParamClassification<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/namespaceXSI.html#a8f0a8fe3a0669ff112ec8be6075c9f92>
> in_classification, INT in_capabilities, constCString<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CString.html>
> &in_name, const CString<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CString.html>
> &in_description, const CValue<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CValue.html>
> &in_default, const CValue<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CValue.html>
> &in_min, const CValue<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CValue.html>
> &in_max, const CValue<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CValue.html>&in_suggestedmin,
> const CValue<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1CValue.html>
> &in_suggestedmax, Parameter<
> http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cpp/classXSI_1_1Parameter.html>
> &io_parameter)
>
> Thanks,
> Joany
> From: softimage-boun...@listproc.autodesk.com [mailto:
> softimage-boun...@listproc.autodesk.com] On Behalf Of Ahmidou Lyazidi
> Sent: Wednesday, May 22, 2013 8:00 AM
> To: softimage@listproc.autodesk.com
> Subject: Re: custom operators and changing topology
>
> what is your debuger saying?
>
> -----------------------------------------------
> Ahmidou Lyazidi
> Director | TD | CG artist
> http://vimeo.com/ahmidou/videos
>
> 2013/5/22 Matt Lind <ml...@carbinestudios.com<mailto:
> ml...@carbinestudios.com>>
> Scripting and C++ are not 1:1.  It might not be necessary to set parameter
> classification to 'siClassifTopo' in C++.
>
> I don't know the answer.
>
> Matt
>
>
>
> From: softimage-boun...@listproc.autodesk.com<mailto:
> softimage-boun...@listproc.autodesk.com> [mailto:
> softimage-boun...@listproc.autodesk.com<mailto:
> softimage-boun...@listproc.autodesk.com>] On Behalf Of ran sariel
> Sent: Tuesday, May 21, 2013 3:21 PM
> To: softimage
> Subject: Re: custom operators and changing topology
>
> Thank you Matt
>
> the issue is not defining the data type, the problem I'm facing is trying
> to let softimage treat my customOperator as one that is changing topology.
> one of the advice I found online was defining the first parameters on that
> operator as "siClassIfTopo", that method is valid for the object model but
> not in the c++ signature.
> Ran
>
>
>
>
> On Tue, May 21, 2013 at 2:49 PM, Matt Lind <ml...@carbinestudios.com
> <mailto:ml...@carbinestudios.com>> wrote:
> XSIFactory.CreateParamDef() is for creating parameters the user interacts
> with in the operator's PPG.
>
> Defining the data type your operator reads/writes is done via port
> connections.  CustomOperator.AddInputPort() and
> CustomOperator.AddOutputPort(), for example.
>
>
> Matt
>
>
>
>
> From: softimage-boun...@listproc.autodesk.com<mailto:
> softimage-boun...@listproc.autodesk.com> [mailto:
> softimage-boun...@listproc.autodesk.com<mailto:
> softimage-boun...@listproc.autodesk.com>] On Behalf Of ran sariel
> Sent: Tuesday, May 21, 2013 1:57 PM
> To: softimage
> Subject: custom operators and changing topology
>
> Hi
>
> I'm trying to read geometry (from a stream) using a custom operator.
> as long as there's no topology changes all works fine and the mesh is read
> and animated.
> when the topology changes softimage crashes.
> I understand I need to classify that operator siClassifTopo, but not sure
> how to do that in c++
> (the c++ methods for CreateParamDef in factory don't have the option to
> specify the classification that the object model has).
>
> what would be the right way to go about it?
>
> Cheers
> Ran
>
>
>

Reply via email to