MCPcopy Create free account
hub / github.com/ImageEngine/cortex / PythonOp

Class PythonOp

test/IECore/Op.py:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36import IECore
37
38class PythonOp( IECore.Op ) :
39
40 def __init__( self ) :
41
42 IECore.Op.__init__( self, "opDescription", IECore.StringParameter( name = "result", description = "", defaultValue = "" ) )
43 self.parameters().addParameter( IECore.StringParameter( name = "name", description = "", defaultValue = "john" ) )
44
45 def doOperation( self, operands ) :
46
47 return IECore.StringData( operands['name'].value )
48
49IECore.registerRunTimeTyped( PythonOp )
50

Callers 4

testNewOpMethod · 0.70
testSmartOpMethod · 0.70
testRunTimeTypedMethod · 0.70
testOperateWithArgsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected