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 / Button's callback in shader properties
  RSS 2.0 ATOM  

Button's callback in shader properties
Rate this thread
 
51726
 
Permlink of this thread  
avatar
  • Total Posts: 2
  • Joined: 22 January 2011 10:22 AM

Hi there.

I am trying to write a shader node.
I can add a button to PPGLayout of my shader node and button appears in the property page that is displayed when the user double-clicks the shader node in the render tree. But where is callback of the button?

Fox example, it is necessarry to add following code to end of function CPPShaders_CPPColorSampler_1_0_Define() of standard Softimage SDK example CPPShaderExample.cpp:

PPGLayout oLayout sdef.GetPPGLayout();
oLayout.Clear();

oLayout.AddGroup();
oLayout.AddItemL"sample_space" );
oLayout.AddButtonL"pressme" );
oLayout.EndGroup();

The button will appears in the property page of shader. But how can I process pressing the button?



Replies: 0