Accessing mOutputForce in a MPxField using python API

Accessing mOutputForce in a MPxField using python API

doble_de
Explorer Explorer
310 Views
2 Replies
Message 1 of 3

Accessing mOutputForce in a MPxField using python API

doble_de
Explorer
Explorer

Hi,

 

I was prototyping a Field node in python, but I can’t find a way to access  “mOutputForce” variable.

I know when dealing with deformers in python, to access the outputGeom, we need to use “OpenMayaMPx.cvar.MPxGeometryFilter_outputGeom”, but I can’t find any documentation for Field nodes.

 

Thanks

0 Likes
Accepted solutions (1)
311 Views
2 Replies
Replies (2)
Message 2 of 3

jmreinhart
Advisor
Advisor
Accepted solution

https://help.autodesk.com/cloudhelp/2018/ENU/Maya-SDK/files-to-wrap/Maya_Python_API_Using_the_Maya_P...

 

So this doc page says to do it like this:

mOutputForce = OpenMayaMPx.cvar.MPxFieldNode_mOutputForce

I haven't tried myself though. 

0 Likes
Message 3 of 3

doble_de
Explorer
Explorer

That worked, thank you so much!

0 Likes