[Script]some questions about SCOP
| Date : Mon, 11 Dec 2006 20:20:54 +0100 |
| To : xsi(at)Softimage.COM |
| From : "Ahmidou Lyazidi" <ahmidou.xsi(at)gmail.com> |
| Subject : [Script]some questions about SCOP |
I m trying to find a way to test the types of my inputs inside a ScriptedOp (2 parameters and a custom property), but don t find a way to make it working:
fisrt i tryed a runtime op , here when i click apply it seems to work, i have the log,
but if i touch one of the input parameters it stop to work and is giving me this error : Objet requis (object needed)
/////////////////
var oOp = ctx.Operator ;
var oInPorts = oOp.InputPorts;
for (i=0; i<oInPorts.Count; i++ )
{
var oPort = oInPorts(i);
var oPortTarget = oPort.Target2;
logmessage (oPortTarget.type);
if (oPortTarget.type == "Parameter")
{
logmessage (oPort);
}
if (oPortTarget.type == "CustomProperty")
{
logmessage (oPort);
// var oCurve = oPort.Value.Profile.Value;
}
}
///////////////////
So I tryed with the classname, here it worked when i clic apply(again i have the log) but then do not log anything on changing input value
////////////////////
if (ClassName(oPortTarget) == "Parameter")
{
logmessage (oPort);
}
if (ClassName(oPortTarget) == "CustomProperty")
{
logmessage (oPort);
// var oCurve = oPort.Value.Profile.Value;
}
/////////////////////////
So finaly i tryed a dynamic operator to filter via the separate portgroups (using the SDK example) but had problems with my connections:
- can t connect it to a parameter only on the parameter's property, but i can log the parameter as an output(but i can't set his value)
-I can' t log my inputs (are they here??)
if someone can point me on what I m doing wrong, i will be grateful
the dynamic version(it s a plugin) is attached and here is the command to call it:
var oOp = ApplyMultiDriver(parameter1, parameter1,customppg) ;
Thanks
Attachment:
MultiDriver1.rar
Description: application/rar
| DATE: | << | >> | THREAD: | << | >> | INDEX: | Main | Thread |
|---|
- Previous by Date: Re: New XSI Particles
- Next by Date: Re: New XSI Particles
- Previous by Thread: Re: New XSI Particles
- Next by Thread: Re: New XSI Particles
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |