import MB_straightenUVs_Tool MB_straightenUVs_Tool.MB_straightenUVs() do I need to add the above two lines in python script, please guide me I'm very new to this scripting
On Wednesday, June 26, 2019 at 1:16:08 AM UTC+5:30, Justin Israel wrote: > > > > On Tue, Jun 25, 2019, 11:13 PM Vishal Kadam <vishalk...@gmail.com > <javascript:>> wrote: > >> hi, >> >> Please find the attachment >> A script by Martin Baadsgaard >> <https://www.highend3d.com/users/martin-baadsgaard> >> >> can this script be written in a single python rather than calling from mel >> > > It is already written in Python. The Mel script is just for the > convenience of exposing it as a global proc in Mel, with a few lines. You > could completely ignore it and do this from python: > > import MB_straightenUVs_Tool > MB_straightenUVs_Tool.MB_straightenUVs() > > -- >> 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 <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/51351af2-4fd4-4383-9d8d-c5b5af28572b%40googlegroups.com >> >> <https://groups.google.com/d/msgid/python_inside_maya/51351af2-4fd4-4383-9d8d-c5b5af28572b%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 python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/7a1d5821-8c04-43eb-90b9-99dab458161e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.