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
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.
I’m on 2013 SP1, but those new methods are not shown in the SDK manuals. I think they were added in 2014.
Matt
From: softimag...@listproc.autodesk.com [mailto:softimag...@listproc.autodesk.com] On Behalf Of Songqiong Yang
Sent: Tuesday, May 21, 2013 10:12 PM
To: soft...@listproc.autodesk.com
Subject: RE: custom operators and changing topology
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 (const CString &in_scriptname, CValue::DataType in_type, siParamClassification in_classification, INT in_capabilities, const CString&in_name, const CString &in_description, const CValue &in_default, const CValue &in_min, const CValue &in_max, const CValue &in_suggestedmin, constCValue &in_suggestedmax, CStatus *pst=0)
2. CustomProperty::AddParameter
AddParameter (const CString &in_scriptname, CValue::DataType in_type, siParamClassification in_classification, INT in_capabilities, constCString &in_name, const CString &in_description, const CValue &in_default, const CValue &in_min, const CValue &in_max, const CValue&in_suggestedmin, const CValue &in_suggestedmax, Parameter &io_parameter)
Thanks,
Joany
From: softimag...@listproc.autodesk.com [mailto:softimag...@listproc.autodesk.com] On Behalf Of Ahmidou Lyazidi
Sent: Wednesday, May 22, 2013 8:00 AM
To: soft...@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>
Scripting and C++ are not 1:1. It might not be necessary to set parameter classification to ‘siClassifTopo’ in C++.
For the record, SDK updates like this are pretty important. I would like to request the docs be updated with reach release whether it be a main release, service pack, or subscription advantage pack.
In this particular scenario, if I had to write the custom topology operator, I would be following the 2013 SP1 documentation only to encounter errors from improper use (because SDK doesn’t match the manuals), or would pull out hair wondering why my operator is behaving in a flakey manner.
It’s important the documentation be matched with the software we’re using.
Thank you.
CreateParamDef (const CString &in_scriptname, CValue::DataType in_type, siParamClassification in_classification, INT in_capabilities, const CString&in_name, const CString &in_description, const CValue &in_default, const CValue &in_min, const CValue &in_max, const CValue &in_suggestedmin, constCValue &in_suggestedmax, CStatus *pst=0)
2. CustomProperty::AddParameter
AddParameter (const CString &in_scriptname, CValue::DataType in_type, siParamClassification in_classification, INT in_capabilities, constCString &in_name, const CString &in_description, const CValue &in_default, const CValue &in_min, const CValue &in_max, const CValue&in_suggestedmin, const CValue &in_suggestedmax, Parameter &io_parameter)
Thanks,
Joany
From: softimag...@listproc.autodesk.com [mailto:softimag...@listproc.autodesk.com] On Behalf Of Ahmidou Lyazidi
Sent: Wednesday, May 22, 2013 8:00 AM
To: soft...@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>
Scripting and C++ are not 1:1. It might not be necessary to set parameter classification to ‘siClassifTopo’ in C++.