In maya 2017 the way to build text seems new to me. The menu operation is Create/Type. This will pop up a text creation GUI. And reams and reams of echoed commands are returned, and the only thing I was able get from all this was the command CreatePolygonType().
Thanks for the link to that document. Hopefully I will be able to derive something from this. On Tuesday, September 26, 2017 at 12:12:18 PM UTC-7, Justin Israel wrote: > > > > On Wed, Sep 27, 2017 at 7:55 AM jettam <[email protected] <javascript:>> > 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] <javascript:>. >> 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/908e2e7e-6bf5-4947-b10c-151509762eec%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
