script access each operator
#2
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:

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
                exportOperator.exportTycache()
            )
        )
    )        
    
)
  Reply


Messages In This Thread
script access each operator - by Saca - 02-01-2022, 11:09 AM
RE: script access each operator - by tyFlow - 02-01-2022, 03:07 PM
RE: script access each operator - by Saca - 02-02-2022, 02:52 AM
RE: script access each operator - by Saca - 03-22-2023, 04:07 AM
RE: script access each operator - by tyFlow - 03-22-2023, 04:35 AM
RE: script access each operator - by Saca - 03-24-2023, 09:42 AM

Forum Jump: