|
|
|
Tell us what you think of the site.
|
Autodesk Media & Entertainment User Community
|
Autodesk® 3ds Max®
|
|
Autodesk® Maya®
|
|
Autodesk® Softimage®
|
|
Autodesk® MotionBuilder®
|
|
Autodesk® Mudbox™
|
|
Autodesk® ImageModeler™
|
|
Autodesk® Sketchbook® Pro
|
|
Autodesk® Smoke on Mac®
|
| Native C++ Function to Add/Display PPG
|
|
|
Dear all,
is there a way to add Custom Property to objects in native C++?
The SDK C++ examples call:
Application::ExecuteCommand( L"SIAddProp", addpropArgs, retVal );
It looks like C++ code is calling some external/outer functions. If the application is written in C++, I would prefer calling native C++ functions to have clean C++ code.
The same I would like to know for Displaying Property Dialogs. C++ SDK examples use:
Application::ExecuteCommand( L"InspectObj", inspectobjArgs, retVal );
I did not find anything in Softimage SDK Guide. Thank you.
Regards.
|
|
|
|
Commands like SIAddProp are implemented in C++.
The XSI SDK object model is also implemented in C++.
You could use the Object Model to add properties. Again there, you’d be using objects implemented outside of your code.
To open a PPG, you’ll have to use InspectObj.
|
|
|
|
Hello Stephen,
if I understand correctly, SIAddProp and InspectObj are themselves written in C++. If I want to call them, the only way for me is going through ExecuteCommand. There is no other more straightforward way.
Application::ExecuteCommand( L"SIAddProp", addpropArgs, retVal );
Application::ExecuteCommand( L"InspectObj", inspectobjArgs, retVal );
Best regards.
|
|
|
|
Right, there’s no other way to call XSI commands.
|
|
|
|
Thanks for your answer.
Regards.
|
|
|
|
|
|