On Wed, Sep 27, 2017 at 7:55 AM jettam <[email protected]> wrote:

> I am using maya 2017 and I want to create text, with python.
>
> I have not been able to find any documentation on this.
>
>  I have found this command. mc.CreatePolygonType() but beyond that I have
> no idea how to set the text. Anyone know ?
>

Here is a good trick for learning how to use the commands API. In your
script editor, under History, enable the echoing of commands. Now perform
the UI action of creating some text. You will see Maya tell you the MEL
commands it is executing. So you will end up seeing something like this:

textCurves -ch 0 -f "Times New Roman|wt:50|sz:28" -t "Maya";

That means you can lookup the textCurves command in Python:
http://help.autodesk.com/cloudhelp/2017/ENU/Maya-Tech-Docs/CommandsPython/textCurves.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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/764727e7-403f-4ca0-8f06-b05aa2d1ba30%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/764727e7-403f-4ca0-8f06-b05aa2d1ba30%40googlegroups.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0DB1mG-TZCMJ2jaTdJySMjrNusAAFeV84cZ3PQaBmcHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to