--
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/CABBPk34Ewu9_i_cTd48jB2GGMm11XNYjhOYmJAm-5o0SPn6-sQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANEMyhPSoshxn4_oC_mYr-hJ4G2aR4xBcqRruhCNdA4-4ZK_CQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CABBPk35%3D7djj-0YD%2B5Vev0c_HbjC3QTqpGJTqoYBuVnmPnfMJA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAM9RXoJMEVNKECHX76zjcFVVS6E-rFct9XgNcXSYyYbm22tAPA%40mail.gmail.com.
pm.rotate can take 3 floats or a dt.Vector(float,float,float) or just a tuple with three floats. pm.rotate((0,45,0),r=True, os=True)
it is flexible.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CABBPk37mP%3D2Bpx9hacM_89zCdSQcbLdMF0zM2SKo1qc2H_6Unw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CABPXW4gD1Og%2Bg0089MuRiSUuEM16rH6CF8N16DtA1DfSQw21DA%40mail.gmail.com.
try this:
import pymel.core as pm
pm.rotate((0,45,0),os=True,r=True)
# or
pm.selected()[0].rotate.set((0,45,0))
# or
pm.rotate(pm.selected()[0], 0,45,0,os=True,r=True)
These all work as expected.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CABBPk35GaAHPrirJPmOY%3DMUjCVyPM2yfCZEPELxMChAZtTUETA%40mail.gmail.com.
pm.rotate((0,45,0), os=True, r=True)
pm.rotate([0,45,0], os=True, r=True)
works fine
pm.rotate(0,45,0, os=True, r=True)
doesn't.
I tried the pymel examples where they aren't using lists or tuples and it doesn't work here even when I'm using the same pymel version.
I guess the pymel examples in the manuals are outdated.
Martin
--
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/7234f8b3-528d-495e-ad39-755d5a9224ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CABBPk37somKN6mCQtTK-N%2BnhbGYix8aeLHo5npi6yyDHfZHVeQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CABPXW4jpc1%2Bw5eMJgQQuiJjaGjNQmJxE3e67YX_FKX-oZCTqQQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CABBPk34%2ByiwsOpgJwMx8PihBQ6Ms0TNco0JYyzJYNQtkOo0o7w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CABPXW4heFgUNCS_spNmUv2Kcg5ytZ1g3g_xa4ytH8ukhO2NK4A%40mail.gmail.com.