Are you guys using this?
http://download.autodesk.com/global/docs/maya2013/en_us/CommandsPython/index.html

This
<http://download.autodesk.com/global/docs/maya2013/en_us/CommandsPython/file.html#flagforce>
would be the *f* flag.
​


On 9 June 2014 11:34, haggi krey <ha...@haggi.de> wrote:

>  I agree that the pymel docs are often a bit confusing. My approach is
> often to look at the mel description to see how the normal commands work.
> The translation is 1:1 in most cases. With objects it is a little bit
> different because it is a mixture between mel commands and advanced object
> oriented design.
> This is extremly helpful if you create UI's with pymel:
>
> b = pm.button(label="GreatButton")
> b.setEnable(False);
> b.label = "Still great button"
>
> This is cool because you can save the ui objects in your own class and
> create UI's without any global procedures.
> If you have a object like:
>
> particleObj = pm.ls(type="nParticle")[0]
>
> You can directly manipulate and query attributes what is much more
> complicated with maya.cmds or mel.
> A simple dir(particleObj) give you an overview of available commands. The
> objects often have the same attributes and methods
> as the API describes in the SDK manual.
>
> haggi
>
>
> Am 09.06.2014 08:44, schrieb Geordie Martinez:
>
>      it's a bit different from maya.cmds
> pymel is object-oriented not string-passing-oriented
>  * however it is actually doing the string passing in most cases under
> the hood but you don't have to worry about it.
>
> I like using the "see" module to view what methods are on pynode objects.
> download it and put it in your scripts dir
> http://inky.github.com/see/
>
>  you make an object and then you "see" the methods and attributes on the
> object.
>
>  example:
>  import pymel.core as pm
>  from see import see
>  jnt = pm.joint()
>
>  # CHECK OUT ALL THE METHODS YOU CAN DO
>  see(jnt)
>
> and it will give you a list of methods you can run on a joint. this
> applies to all pynodes created or cast by pymel.
>
>  pymel wraps maya.cmds under-the-hood so for some methods in pymel you can
> pass in the same arguments
>
>  like for instance the .inputs() and .outputs() methods are wrapping
> maya.cmds listConnections so you can pass the same arguments.
>
>  so if you did help(jnt.inputs)
>
>  you would see it's wrapping maya.cmds version of listConnections as a
> method on the object.
>
>  check this out (begin shameless self promotion):
> http://www.cgcircuit.com/course/intro-to-pymel-part-1
>
>
>
>
>
>
>    --
> 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_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CABPXW4i_OjAmqB%3DF8RS-2tctPdpOmCCF4%3DQbLJiNEVMPJKCGbA%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CABPXW4i_OjAmqB%3DF8RS-2tctPdpOmCCF4%3DQbLJiNEVMPJKCGbA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>  --
> 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_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/53958D9A.4080603%40haggi.de
> <https://groups.google.com/d/msgid/python_inside_maya/53958D9A.4080603%40haggi.de?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Marcus Ottosson*
konstrukt...@gmail.com

-- 
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_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCfyvadO3_qCS29LwYFUPwCidk1jOEakrHr6Q9W9Zc2qA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to