My plugin property page have a texture control widget added as following:
Code: Select all
var obj = CreatePrim("Sphere", "MeshSurface", null, null);
// Creating PPG and adding Texture Control Widget to it
var oPSet=obj.AddProperty("CustomProperty",false,"Demo") ;
oPSet.AddParameter2("inUVs", siString );
var oPPGLayout = oPSet.PPGLayout ;
oPPGLayout.AddItem("inUVs", "Texture Projection", siControlTextureSpace);
InspectObj( oPSet, "", "Check out this layout created from scripting" );
// ERROR : 2003-SetInstanceDataValue - Interface not supported.
SetInstanceDataValue(null, "sphere.Demo.inUVs", "Texture_Projection");
Any clues how to get the texture widget works as expected?
Thanks,