Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / XSI SDK / Native C++ Function to Add/Display PPG
  RSS 2.0 ATOM  

Native C++ Function to Add/Display PPG
Rate this thread
 
48467
 
Permlink of this thread  
avatar
  • Total Posts: 101
  • Joined: 31 August 2010 07:17 AM

Dear all,

is there a way to add Custom Property to objects in native C++?


The SDK C++ examples call:

Application::ExecuteCommandL"SIAddProp"addpropArgsretVal );

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::ExecuteCommandL"InspectObj"inspectobjArgsretVal );




I did not find anything in Softimage SDK Guide. Thank you.

Regards.



Replies: 0
avatar

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.



Replies: 0
avatar

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::ExecuteCommandL"SIAddProp"addpropArgsretVal ); 

Application::ExecuteCommandL"InspectObj"inspectobjArgsretVal );

Best regards.



Replies: 0
avatar

Right, there’s no other way to call XSI commands.



Replies: 0
avatar

Thanks for your answer.

Regards.



Replies: 0