MPlug issue

27 views
Skip to first unread message

Todd Widup

unread,
Jan 9, 2020, 8:52:25 PM1/9/20
to python_in...@googlegroups.com
MDGContext timeOff(time - 1.0);
MPlug inPrev(myNode, aInValue);
MMatrix inputPrev;
inPrev.getValue(inputPrev, timeOff);

I am doing this just fine on a float or double, but for some reason VS is saying there is no overload function for MPlug getValue that matches that input

any suggestions or ideas?

--
Todd Widup
Creature TD / Technical Artist
todd....@gmail.com

Justin Israel

unread,
Jan 9, 2020, 9:44:26 PM1/9/20
to python_in...@googlegroups.com
MPlug.getValue(MMatrix, MDGContext)  does not appear to exist as an overload, so I think that error is valid:
http://help.autodesk.com/view/MAYAUL/2019/ENU/?guid=Maya_SDK_MERGED_cpp_ref_class_m_plug_members_html 

Usage examples suggestion one would use getValue(MObject) to get the MMatrix, and then operate on it using MFnMatrixData:
http://help.autodesk.com/view/MAYAUL/2019/ENU/?guid=Maya_SDK_MERGED_cpp_ref_cv_color_node_2cv_color_node_8cpp_example_html 
  

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CABBPk36DFx7QZcAv0iX77EkZ2bOKHTopsAxmLFnXMaS6fGW4cQ%40mail.gmail.com.

Todd Widup

unread,
Jan 10, 2020, 4:43:18 PM1/10/20
to python_in...@googlegroups.com
yea  found it..I got it working...thanks Justin

Reply all
Reply to author
Forward
0 new messages