|
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.AddItem( L"sample_space" ); oLayout.AddButton( L"pressme" ); oLayout.EndGroup();
The button will appears in the property page of shader. But how can I process pressing the button?
|
|
|