Hi guys,

I was wondering what is your technique to get all the expressions driven by
a parameter.
I'm trying to find the fastest way to do it.
here is my code :

def getExpressionsDrivenByParameter( param ):

allExpressions = xsi.FindObjects(None,
"{12723EB2-7DDB-11D0-A57F-00A0C91412DE}")
 result = []
for exp in allExpressions:
for port in exp.InputPorts:
if port.Target2.IsEqualTo(param) and exp.OutputPorts.Count:
result.append(exp)
break
 return result

With around 5000 expressions in my scene it takes about 2sec to get the
result. Anyone got a faster solution ?

cheers,
Jeremie

Reply via email to