MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / compute

Method compute

Scripts/Maya/SPlisHSPlasH.py:1125–1135  ·  view source on GitHub ↗
(self,plug,dataBlock)

Source from the content-addressed store, hash-verified

1123 return OpenMayaMPx.asMPxPtr( SPHFluidNode() )
1124
1125 def compute(self,plug,dataBlock):
1126 # if ( plug == SPHFluidNode.output ):
1127 # dataHandle = dataBlock.inputValue( SPHFluidNode.input )
1128
1129 # inputFloat = dataHandle.asFloat()
1130 # result = math.sin( inputFloat ) * 10.0
1131 # outputHandle = dataBlock.outputValue( SPHFluidNode.output )
1132 # outputHandle.setFloat( result )
1133 # dataBlock.setClean( plug )
1134
1135 return OpenMaya.kUnknownParameter
1136
1137 ######################################################
1138 # initParameters

Callers 11

solvePDConstraintsMethod · 0.45
_initMethod · 0.45
initFactorizationMethod · 0.45
initFactorizationMethod · 0.45
stepVolumeSolverMethod · 0.45
stepMethod · 0.45
stepMethod · 0.45
stepMethod · 0.45
stepMethod · 0.45
stepMethod · 0.45
stepMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected