[Closed] SDK Script Controller. Is it possible?
I would like to assign a script controller through SDK (well SDK-NET).
Is it possible? If not, an expression controller?
Can someone show a simple example?
Thanks in advance.
OK. After a good time of trial and error, I’ve been able to assign a position script controller to a node through SDK-NET (but really don’t know why I’m using BaseScriptControl8 and not another one)
public static void SetScriptController(IINode node)
{
IClass_ID myClass = global.Class_ID.Create(1348826747, 1748648613);
SClass_ID mySClass = SClass_ID.CtrlPosition;
IIBaseScriptControl8 ctrlScript = ip.CreateInstance(mySClass, myClass) as IIBaseScriptControl8;
string script = "[F, F, 0]";
ctrlScript._ScriptText = script;
node.TMController.SetPositionController(ctrlScript);
}
Now, obviously, my question is: how do I assign constants, targets, nodes… to this script controller?
I’ll really thank a little help.
I’m absolutely lost.
Can anyone explain to me what’s “IScriptCtrl” that seems not to be a Control but has the functions I need, “IBaseScriptControl” that is a scripted control but hasn’t the functions I need, and the relationship between them (if there is any)?
How can I create an “IScriptCtrl” (can’t find a ClassID for it) and then use it as a node control?