script access each operator
please tell me, how to access each operator has the tyflow via maxscript.
example, the tyflow has two events 'Export_Left' and 'Export_Right', it has 'Export_Particles' operator.

--export script code
ty.Ev_Export.Export_Particles.tycacheFilename = @"C:\tyCache\export_.tyc"

it's go well.

but the problem is on some exports.
I do't know how to access each operator has the tyflow.
the script needs each operator name in this code,
thus i want to each them automatically, instead of hard-coding.


congratulations tyFlow-Pro release!

Attached Files Thumbnail(s)
Hey, you can iterate object properties and then determine if they are events and such, then further iterate property names to figure out if the operator matches the naming scheme of the export operator you want as well.

Example code:

obj = $tyFlow001

names = getPropNames obj
for name in names do
    prop = getproperty obj name
    if iskindof prop tyEvent then
        OPnames = getPropNames prop
        for OPname in OPnames do
            if findstring (OPname as string) "export" != undefined then
                exportOperator = getProperty prop OPname
thanks, your code.

It went well.

Forum Jump: