Re: [Maya-Python] Maya 2024 pyMel ;(

2023-04-12 Thread Yury Nedelin
Thanks for the update Chad.
Yury


On Wed, Apr 12, 2023 at 9:21 AM Chad Dombrova  wrote:

> Hi all,
> PyMEL 1.3.0 has been released with support for 2023, and 1.4.0b1 has been
> released with support for 2024.  To install the beta for 2024 pip install
> with --pre flag.
>
> PyMEL is definitely still actively developed, as you can see from the
> features discussed in this blog post:
> https://dev.to/chadrik/pymels-new-type-stubs-2die
>
> As for why PyMEL is no longer bundled with Maya, I'll do my best to
> summarize the discussions with Autodesk on this topic.  Firstly, there
> seemed to be the impression that the new python API 2.0 solved the problems
> with python scripting in Maya, which is an assessment that I don't agree
> with.  Nothing has appreciably changed with the ability to use maya.cmds
> with the C++ API wrapper(s) in the 15 years since python was first added to
> Maya.  One pain point from Autodesk's perspective was that releasing Maya
> required a certain amount of cooperation between Autodesk and the PyMEL
> developers, which added extra steps for them and slowed them down, which is
> a point I totally understand.  Their assessment was that the pros of
> installing via PyPI -- decoupled release schedules, esp the ability to
> release patch fixes to PyMEL -- outweighed the cons -- extra steps for
> users and headaches with installing behind a firewall.  And lastly, I think
> there was the feeling that there's a world of open source projects out
> there for Maya, so "why should PyMEL get special status?"
>
> What we're seeing with the delayed release of pymel for 2023 is one of the
> downsides of the new arrangement:  the lack of a hard deadline to get PyMEL
> released in time to be bundled with Maya means it doesn't always make it to
> the top of the issue stack at Luma (I managed to get all of the release
> work done for 2023 and 2024 on my vacation and while sick).
>
> If there are others out there who would like to cooperate on PyMEL, we're
> happy to do so.  The release process is very well documented, and I make an
> effort to improve it every time I do the process.
>
> I hope that clears things up.  Let me know if you folks have any questions
> and I'll do my best to answer them.
>
> -chad
>
>
> On Sun, Apr 2, 2023 at 5:12 AM Marcus Ottosson 
> wrote:
>
>> Hm, true. Could be as simple as that.
>>
>> - https://github.com/LumaPictures/pymel
>>
>> [image: image.png]
>>
>> Still, surprised there was no conversation; I'd imagine someone may want
>> to take over, especially since a lot of pipeline out there depend on it.
>>
>> On Sun, 2 Apr 2023 at 11:59, Justin Israel 
>> wrote:
>>
>>> The last tag was in Nov 2021
>>> Could it be that it's not actively maintained anymore so Autodesk
>>> stopped bundling it?
>>>
>>> On Sun, 2 Apr 2023, 9:38 pm Marcus Ottosson, 
>>> wrote:
>>>
 I've also tried getting to the bottom of why PyMEL stopped being
 included to begin with in 2023, assuming I missed a conversation somewhere.
 But it appears to have happened out of the blue over at Autodesk
 headquarters? :O Maybe @Chad Dombrova  knows more?

 On Sun, 2 Apr 2023 at 00:28, Justin Israel 
 wrote:

>
>
> On Sun, 2 Apr 2023, 11:23 am Abdelhalim abulmagd, <
> abdelhalim.abulm...@gmail.com> wrote:
>
>> Why pymel not available?
>>
>
> Seems like they might have stopped shipping with PyMel as of 2023 and
> you need to manually install it?
>
>
> https://help.autodesk.com/view/MAYAUL/2022/ENU/?guid=GUID-2AA5EFCE-53B1-46A0-8E43-4CD0B2C72FB4
>
>
> https://help.autodesk.com/view/MAYAUL/2023/ENU/?guid=GUID-2AA5EFCE-53B1-46A0-8E43-4CD0B2C72FB4
>
>
>> On Sun, Apr 2, 2023, 12:36 AM DGFA DAG's GRAPHIC & FOTO ART <
>> gerome@gmail.com> wrote:
>>
>>> Hi,
>>> in Maya 2024 is no more pymel available so I have to switch to what
>>> ever...
>>>
>>> But I struggle with Maya cmds.
>>> How can I translate this to cmds?
>>>
>>> import pymel.core as pm
>>> # import os
>>> # import maya.mel as mel
>>> # main call
>>>
>>> def dags_menu():
>>> # call menu objects
>>> main_window = pm.language.melGlobals['gMainWindow']
>>> menu_obj = 'DagsMenu'
>>> menu_label = 'Dags Tools'
>>>
>>> if pm.menu(menu_obj, label=menu_label, parent=main_window,
>>> exists=True):
>>> pm.deleteUI(pm.menu(menu_obj, deleteAllItems=True, e=True))
>>>
>>> dags_menu = pm.menu(menu_obj, label=menu_label, parent=main_window,
>>> tearOff=True)
>>>
>>>
>>> project_menu(dags_menu)
>>> polygon_menu(dags_menu)
>>> object_menu(dags_menu)
>>> script_menu(dags_menu)
>>> material_menu(dags_menu)
>>> rigging_menu(dags_menu)
>>> camera_menu(dags_menu)
>>> light_menu(dags_menu)
>>> render_menu(dags_menu)
>>>
>>>
>>> # menu Items
>>> def project_menu(dags_menu):
>>> # Main Submenu Project
>>> # 

Re: [Maya-Python] Maya 2024 pyMel ;(

2023-04-12 Thread Chad Dombrova
Hi all,
PyMEL 1.3.0 has been released with support for 2023, and 1.4.0b1 has been
released with support for 2024.  To install the beta for 2024 pip install
with --pre flag.

PyMEL is definitely still actively developed, as you can see from the
features discussed in this blog post:
https://dev.to/chadrik/pymels-new-type-stubs-2die

As for why PyMEL is no longer bundled with Maya, I'll do my best to
summarize the discussions with Autodesk on this topic.  Firstly, there
seemed to be the impression that the new python API 2.0 solved the problems
with python scripting in Maya, which is an assessment that I don't agree
with.  Nothing has appreciably changed with the ability to use maya.cmds
with the C++ API wrapper(s) in the 15 years since python was first added to
Maya.  One pain point from Autodesk's perspective was that releasing Maya
required a certain amount of cooperation between Autodesk and the PyMEL
developers, which added extra steps for them and slowed them down, which is
a point I totally understand.  Their assessment was that the pros of
installing via PyPI -- decoupled release schedules, esp the ability to
release patch fixes to PyMEL -- outweighed the cons -- extra steps for
users and headaches with installing behind a firewall.  And lastly, I think
there was the feeling that there's a world of open source projects out
there for Maya, so "why should PyMEL get special status?"

What we're seeing with the delayed release of pymel for 2023 is one of the
downsides of the new arrangement:  the lack of a hard deadline to get PyMEL
released in time to be bundled with Maya means it doesn't always make it to
the top of the issue stack at Luma (I managed to get all of the release
work done for 2023 and 2024 on my vacation and while sick).

If there are others out there who would like to cooperate on PyMEL, we're
happy to do so.  The release process is very well documented, and I make an
effort to improve it every time I do the process.

I hope that clears things up.  Let me know if you folks have any questions
and I'll do my best to answer them.

-chad


On Sun, Apr 2, 2023 at 5:12 AM Marcus Ottosson 
wrote:

> Hm, true. Could be as simple as that.
>
> - https://github.com/LumaPictures/pymel
>
> [image: image.png]
>
> Still, surprised there was no conversation; I'd imagine someone may want
> to take over, especially since a lot of pipeline out there depend on it.
>
> On Sun, 2 Apr 2023 at 11:59, Justin Israel  wrote:
>
>> The last tag was in Nov 2021
>> Could it be that it's not actively maintained anymore so Autodesk stopped
>> bundling it?
>>
>> On Sun, 2 Apr 2023, 9:38 pm Marcus Ottosson, 
>> wrote:
>>
>>> I've also tried getting to the bottom of why PyMEL stopped being
>>> included to begin with in 2023, assuming I missed a conversation somewhere.
>>> But it appears to have happened out of the blue over at Autodesk
>>> headquarters? :O Maybe @Chad Dombrova  knows more?
>>>
>>> On Sun, 2 Apr 2023 at 00:28, Justin Israel 
>>> wrote:
>>>


 On Sun, 2 Apr 2023, 11:23 am Abdelhalim abulmagd, <
 abdelhalim.abulm...@gmail.com> wrote:

> Why pymel not available?
>

 Seems like they might have stopped shipping with PyMel as of 2023 and
 you need to manually install it?


 https://help.autodesk.com/view/MAYAUL/2022/ENU/?guid=GUID-2AA5EFCE-53B1-46A0-8E43-4CD0B2C72FB4


 https://help.autodesk.com/view/MAYAUL/2023/ENU/?guid=GUID-2AA5EFCE-53B1-46A0-8E43-4CD0B2C72FB4


> On Sun, Apr 2, 2023, 12:36 AM DGFA DAG's GRAPHIC & FOTO ART <
> gerome@gmail.com> wrote:
>
>> Hi,
>> in Maya 2024 is no more pymel available so I have to switch to what
>> ever...
>>
>> But I struggle with Maya cmds.
>> How can I translate this to cmds?
>>
>> import pymel.core as pm
>> # import os
>> # import maya.mel as mel
>> # main call
>>
>> def dags_menu():
>> # call menu objects
>> main_window = pm.language.melGlobals['gMainWindow']
>> menu_obj = 'DagsMenu'
>> menu_label = 'Dags Tools'
>>
>> if pm.menu(menu_obj, label=menu_label, parent=main_window,
>> exists=True):
>> pm.deleteUI(pm.menu(menu_obj, deleteAllItems=True, e=True))
>>
>> dags_menu = pm.menu(menu_obj, label=menu_label, parent=main_window,
>> tearOff=True)
>>
>>
>> project_menu(dags_menu)
>> polygon_menu(dags_menu)
>> object_menu(dags_menu)
>> script_menu(dags_menu)
>> material_menu(dags_menu)
>> rigging_menu(dags_menu)
>> camera_menu(dags_menu)
>> light_menu(dags_menu)
>> render_menu(dags_menu)
>>
>>
>> # menu Items
>> def project_menu(dags_menu):
>> # Main Submenu Project
>> # pm.setParent('..', menu=True)
>> # dags_menu = pm.menu(menu_obj, label=menu_label, parent=main_window,
>> tearOff=True)
>> pm.menuItem(label='Project', subMenu=True, parent=dags_menu,
>> tearOff=True)
>> # set project
>> pm.menuItem(

Re: [Maya-Python] Maya 2024 pyMel ;(

2023-04-02 Thread Marcus Ottosson
Hm, true. Could be as simple as that.

- https://github.com/LumaPictures/pymel

[image: image.png]

Still, surprised there was no conversation; I'd imagine someone may want to
take over, especially since a lot of pipeline out there depend on it.

On Sun, 2 Apr 2023 at 11:59, Justin Israel  wrote:

> The last tag was in Nov 2021
> Could it be that it's not actively maintained anymore so Autodesk stopped
> bundling it?
>
> On Sun, 2 Apr 2023, 9:38 pm Marcus Ottosson, 
> wrote:
>
>> I've also tried getting to the bottom of why PyMEL stopped being included
>> to begin with in 2023, assuming I missed a conversation somewhere. But it
>> appears to have happened out of the blue over at Autodesk headquarters? :O
>> Maybe @Chad Dombrova  knows more?
>>
>> On Sun, 2 Apr 2023 at 00:28, Justin Israel 
>> wrote:
>>
>>>
>>>
>>> On Sun, 2 Apr 2023, 11:23 am Abdelhalim abulmagd, <
>>> abdelhalim.abulm...@gmail.com> wrote:
>>>
 Why pymel not available?

>>>
>>> Seems like they might have stopped shipping with PyMel as of 2023 and
>>> you need to manually install it?
>>>
>>>
>>> https://help.autodesk.com/view/MAYAUL/2022/ENU/?guid=GUID-2AA5EFCE-53B1-46A0-8E43-4CD0B2C72FB4
>>>
>>>
>>> https://help.autodesk.com/view/MAYAUL/2023/ENU/?guid=GUID-2AA5EFCE-53B1-46A0-8E43-4CD0B2C72FB4
>>>
>>>
 On Sun, Apr 2, 2023, 12:36 AM DGFA DAG's GRAPHIC & FOTO ART <
 gerome@gmail.com> wrote:

> Hi,
> in Maya 2024 is no more pymel available so I have to switch to what
> ever...
>
> But I struggle with Maya cmds.
> How can I translate this to cmds?
>
> import pymel.core as pm
> # import os
> # import maya.mel as mel
> # main call
>
> def dags_menu():
> # call menu objects
> main_window = pm.language.melGlobals['gMainWindow']
> menu_obj = 'DagsMenu'
> menu_label = 'Dags Tools'
>
> if pm.menu(menu_obj, label=menu_label, parent=main_window,
> exists=True):
> pm.deleteUI(pm.menu(menu_obj, deleteAllItems=True, e=True))
>
> dags_menu = pm.menu(menu_obj, label=menu_label, parent=main_window,
> tearOff=True)
>
>
> project_menu(dags_menu)
> polygon_menu(dags_menu)
> object_menu(dags_menu)
> script_menu(dags_menu)
> material_menu(dags_menu)
> rigging_menu(dags_menu)
> camera_menu(dags_menu)
> light_menu(dags_menu)
> render_menu(dags_menu)
>
>
> # menu Items
> def project_menu(dags_menu):
> # Main Submenu Project
> # pm.setParent('..', menu=True)
> # dags_menu = pm.menu(menu_obj, label=menu_label, parent=main_window,
> tearOff=True)
> pm.menuItem(label='Project', subMenu=True, parent=dags_menu,
> tearOff=True)
> # set project
> pm.menuItem(
> label='Set Project',
> command='SetProject',
> image='fileOpen.png',
> sourceType='mel',
> optionBox=False,
> visible=True,
> )
>
> pm.menuItem(divider=True)
> # save
> pm.menuItem(
> label='Save',
> command='SaveScene',
> image='save.png',
> sourceType='mel',
> optionBox=False,
> visible=True,
> )
> # save as
> pm.menuItem(
> label='Save Scene As...',
> command='SaveSceneAs',
> image='save.png',
> sourceType='mel',
> optionBox=False,
> visible=True,
> )
> # save incremental
> pm.menuItem(
> label='Increment Save',
> command='IncrementAndSave',
> image='saveToShelf.png',
> sourceType='mel',
> optionBox=False,
> visible=True,
> )
>
> Thanks!
> D.
>
> --
> 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/1b086fbd-ac54-435e-b4e7-7d90d1943eb3n%40googlegroups.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/CAJLC81Omy4V1XC6-7C-xb58C8qAspHhm1wZEav_7GEwYCxwu8A%40mail.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 

Re: [Maya-Python] Maya 2024 pyMel ;(

2023-04-02 Thread Justin Israel
The last tag was in Nov 2021
Could it be that it's not actively maintained anymore so Autodesk stopped
bundling it?

On Sun, 2 Apr 2023, 9:38 pm Marcus Ottosson,  wrote:

> I've also tried getting to the bottom of why PyMEL stopped being included
> to begin with in 2023, assuming I missed a conversation somewhere. But it
> appears to have happened out of the blue over at Autodesk headquarters? :O
> Maybe @Chad Dombrova  knows more?
>
> On Sun, 2 Apr 2023 at 00:28, Justin Israel  wrote:
>
>>
>>
>> On Sun, 2 Apr 2023, 11:23 am Abdelhalim abulmagd, <
>> abdelhalim.abulm...@gmail.com> wrote:
>>
>>> Why pymel not available?
>>>
>>
>> Seems like they might have stopped shipping with PyMel as of 2023 and you
>> need to manually install it?
>>
>>
>> https://help.autodesk.com/view/MAYAUL/2022/ENU/?guid=GUID-2AA5EFCE-53B1-46A0-8E43-4CD0B2C72FB4
>>
>>
>> https://help.autodesk.com/view/MAYAUL/2023/ENU/?guid=GUID-2AA5EFCE-53B1-46A0-8E43-4CD0B2C72FB4
>>
>>
>>> On Sun, Apr 2, 2023, 12:36 AM DGFA DAG's GRAPHIC & FOTO ART <
>>> gerome@gmail.com> wrote:
>>>
 Hi,
 in Maya 2024 is no more pymel available so I have to switch to what
 ever...

 But I struggle with Maya cmds.
 How can I translate this to cmds?

 import pymel.core as pm
 # import os
 # import maya.mel as mel
 # main call

 def dags_menu():
 # call menu objects
 main_window = pm.language.melGlobals['gMainWindow']
 menu_obj = 'DagsMenu'
 menu_label = 'Dags Tools'

 if pm.menu(menu_obj, label=menu_label, parent=main_window, exists=True):
 pm.deleteUI(pm.menu(menu_obj, deleteAllItems=True, e=True))

 dags_menu = pm.menu(menu_obj, label=menu_label, parent=main_window,
 tearOff=True)


 project_menu(dags_menu)
 polygon_menu(dags_menu)
 object_menu(dags_menu)
 script_menu(dags_menu)
 material_menu(dags_menu)
 rigging_menu(dags_menu)
 camera_menu(dags_menu)
 light_menu(dags_menu)
 render_menu(dags_menu)


 # menu Items
 def project_menu(dags_menu):
 # Main Submenu Project
 # pm.setParent('..', menu=True)
 # dags_menu = pm.menu(menu_obj, label=menu_label, parent=main_window,
 tearOff=True)
 pm.menuItem(label='Project', subMenu=True, parent=dags_menu,
 tearOff=True)
 # set project
 pm.menuItem(
 label='Set Project',
 command='SetProject',
 image='fileOpen.png',
 sourceType='mel',
 optionBox=False,
 visible=True,
 )

 pm.menuItem(divider=True)
 # save
 pm.menuItem(
 label='Save',
 command='SaveScene',
 image='save.png',
 sourceType='mel',
 optionBox=False,
 visible=True,
 )
 # save as
 pm.menuItem(
 label='Save Scene As...',
 command='SaveSceneAs',
 image='save.png',
 sourceType='mel',
 optionBox=False,
 visible=True,
 )
 # save incremental
 pm.menuItem(
 label='Increment Save',
 command='IncrementAndSave',
 image='saveToShelf.png',
 sourceType='mel',
 optionBox=False,
 visible=True,
 )

 Thanks!
 D.

 --
 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/1b086fbd-ac54-435e-b4e7-7d90d1943eb3n%40googlegroups.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/CAJLC81Omy4V1XC6-7C-xb58C8qAspHhm1wZEav_7GEwYCxwu8A%40mail.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/CAPGFgA3DK3Sd2m1mEnx%2BTRTrrzkKB52pm6dNtzkwtfg2%3DmOqwA%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message 

Re: [Maya-Python] Maya 2024 pyMel ;(

2023-04-02 Thread Marcus Ottosson
I've also tried getting to the bottom of why PyMEL stopped being included
to begin with in 2023, assuming I missed a conversation somewhere. But it
appears to have happened out of the blue over at Autodesk headquarters? :O
Maybe @Chad Dombrova  knows more?

On Sun, 2 Apr 2023 at 00:28, Justin Israel  wrote:

>
>
> On Sun, 2 Apr 2023, 11:23 am Abdelhalim abulmagd, <
> abdelhalim.abulm...@gmail.com> wrote:
>
>> Why pymel not available?
>>
>
> Seems like they might have stopped shipping with PyMel as of 2023 and you
> need to manually install it?
>
>
> https://help.autodesk.com/view/MAYAUL/2022/ENU/?guid=GUID-2AA5EFCE-53B1-46A0-8E43-4CD0B2C72FB4
>
>
> https://help.autodesk.com/view/MAYAUL/2023/ENU/?guid=GUID-2AA5EFCE-53B1-46A0-8E43-4CD0B2C72FB4
>
>
>> On Sun, Apr 2, 2023, 12:36 AM DGFA DAG's GRAPHIC & FOTO ART <
>> gerome@gmail.com> wrote:
>>
>>> Hi,
>>> in Maya 2024 is no more pymel available so I have to switch to what
>>> ever...
>>>
>>> But I struggle with Maya cmds.
>>> How can I translate this to cmds?
>>>
>>> import pymel.core as pm
>>> # import os
>>> # import maya.mel as mel
>>> # main call
>>>
>>> def dags_menu():
>>> # call menu objects
>>> main_window = pm.language.melGlobals['gMainWindow']
>>> menu_obj = 'DagsMenu'
>>> menu_label = 'Dags Tools'
>>>
>>> if pm.menu(menu_obj, label=menu_label, parent=main_window, exists=True):
>>> pm.deleteUI(pm.menu(menu_obj, deleteAllItems=True, e=True))
>>>
>>> dags_menu = pm.menu(menu_obj, label=menu_label, parent=main_window,
>>> tearOff=True)
>>>
>>>
>>> project_menu(dags_menu)
>>> polygon_menu(dags_menu)
>>> object_menu(dags_menu)
>>> script_menu(dags_menu)
>>> material_menu(dags_menu)
>>> rigging_menu(dags_menu)
>>> camera_menu(dags_menu)
>>> light_menu(dags_menu)
>>> render_menu(dags_menu)
>>>
>>>
>>> # menu Items
>>> def project_menu(dags_menu):
>>> # Main Submenu Project
>>> # pm.setParent('..', menu=True)
>>> # dags_menu = pm.menu(menu_obj, label=menu_label, parent=main_window,
>>> tearOff=True)
>>> pm.menuItem(label='Project', subMenu=True, parent=dags_menu,
>>> tearOff=True)
>>> # set project
>>> pm.menuItem(
>>> label='Set Project',
>>> command='SetProject',
>>> image='fileOpen.png',
>>> sourceType='mel',
>>> optionBox=False,
>>> visible=True,
>>> )
>>>
>>> pm.menuItem(divider=True)
>>> # save
>>> pm.menuItem(
>>> label='Save',
>>> command='SaveScene',
>>> image='save.png',
>>> sourceType='mel',
>>> optionBox=False,
>>> visible=True,
>>> )
>>> # save as
>>> pm.menuItem(
>>> label='Save Scene As...',
>>> command='SaveSceneAs',
>>> image='save.png',
>>> sourceType='mel',
>>> optionBox=False,
>>> visible=True,
>>> )
>>> # save incremental
>>> pm.menuItem(
>>> label='Increment Save',
>>> command='IncrementAndSave',
>>> image='saveToShelf.png',
>>> sourceType='mel',
>>> optionBox=False,
>>> visible=True,
>>> )
>>>
>>> Thanks!
>>> D.
>>>
>>> --
>>> 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/1b086fbd-ac54-435e-b4e7-7d90d1943eb3n%40googlegroups.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/CAJLC81Omy4V1XC6-7C-xb58C8qAspHhm1wZEav_7GEwYCxwu8A%40mail.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/CAPGFgA3DK3Sd2m1mEnx%2BTRTrrzkKB52pm6dNtzkwtfg2%3DmOqwA%40mail.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 

Re: [Maya-Python] Maya 2024 pyMel ;(

2023-04-01 Thread Justin Israel
On Sun, 2 Apr 2023, 11:23 am Abdelhalim abulmagd, <
abdelhalim.abulm...@gmail.com> wrote:

> Why pymel not available?
>

Seems like they might have stopped shipping with PyMel as of 2023 and you
need to manually install it?

https://help.autodesk.com/view/MAYAUL/2022/ENU/?guid=GUID-2AA5EFCE-53B1-46A0-8E43-4CD0B2C72FB4

https://help.autodesk.com/view/MAYAUL/2023/ENU/?guid=GUID-2AA5EFCE-53B1-46A0-8E43-4CD0B2C72FB4


> On Sun, Apr 2, 2023, 12:36 AM DGFA DAG's GRAPHIC & FOTO ART <
> gerome@gmail.com> wrote:
>
>> Hi,
>> in Maya 2024 is no more pymel available so I have to switch to what
>> ever...
>>
>> But I struggle with Maya cmds.
>> How can I translate this to cmds?
>>
>> import pymel.core as pm
>> # import os
>> # import maya.mel as mel
>> # main call
>>
>> def dags_menu():
>> # call menu objects
>> main_window = pm.language.melGlobals['gMainWindow']
>> menu_obj = 'DagsMenu'
>> menu_label = 'Dags Tools'
>>
>> if pm.menu(menu_obj, label=menu_label, parent=main_window, exists=True):
>> pm.deleteUI(pm.menu(menu_obj, deleteAllItems=True, e=True))
>>
>> dags_menu = pm.menu(menu_obj, label=menu_label, parent=main_window,
>> tearOff=True)
>>
>>
>> project_menu(dags_menu)
>> polygon_menu(dags_menu)
>> object_menu(dags_menu)
>> script_menu(dags_menu)
>> material_menu(dags_menu)
>> rigging_menu(dags_menu)
>> camera_menu(dags_menu)
>> light_menu(dags_menu)
>> render_menu(dags_menu)
>>
>>
>> # menu Items
>> def project_menu(dags_menu):
>> # Main Submenu Project
>> # pm.setParent('..', menu=True)
>> # dags_menu = pm.menu(menu_obj, label=menu_label, parent=main_window,
>> tearOff=True)
>> pm.menuItem(label='Project', subMenu=True, parent=dags_menu, tearOff=True)
>> # set project
>> pm.menuItem(
>> label='Set Project',
>> command='SetProject',
>> image='fileOpen.png',
>> sourceType='mel',
>> optionBox=False,
>> visible=True,
>> )
>>
>> pm.menuItem(divider=True)
>> # save
>> pm.menuItem(
>> label='Save',
>> command='SaveScene',
>> image='save.png',
>> sourceType='mel',
>> optionBox=False,
>> visible=True,
>> )
>> # save as
>> pm.menuItem(
>> label='Save Scene As...',
>> command='SaveSceneAs',
>> image='save.png',
>> sourceType='mel',
>> optionBox=False,
>> visible=True,
>> )
>> # save incremental
>> pm.menuItem(
>> label='Increment Save',
>> command='IncrementAndSave',
>> image='saveToShelf.png',
>> sourceType='mel',
>> optionBox=False,
>> visible=True,
>> )
>>
>> Thanks!
>> D.
>>
>> --
>> 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/1b086fbd-ac54-435e-b4e7-7d90d1943eb3n%40googlegroups.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/CAJLC81Omy4V1XC6-7C-xb58C8qAspHhm1wZEav_7GEwYCxwu8A%40mail.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/CAPGFgA3DK3Sd2m1mEnx%2BTRTrrzkKB52pm6dNtzkwtfg2%3DmOqwA%40mail.gmail.com.


Re: [Maya-Python] Maya 2024 pyMel ;(

2023-04-01 Thread Abdelhalim abulmagd
Why pymel not available?

On Sun, Apr 2, 2023, 12:36 AM DGFA DAG's GRAPHIC & FOTO ART <
gerome@gmail.com> wrote:

> Hi,
> in Maya 2024 is no more pymel available so I have to switch to what ever...
>
> But I struggle with Maya cmds.
> How can I translate this to cmds?
>
> import pymel.core as pm
> # import os
> # import maya.mel as mel
> # main call
>
> def dags_menu():
> # call menu objects
> main_window = pm.language.melGlobals['gMainWindow']
> menu_obj = 'DagsMenu'
> menu_label = 'Dags Tools'
>
> if pm.menu(menu_obj, label=menu_label, parent=main_window, exists=True):
> pm.deleteUI(pm.menu(menu_obj, deleteAllItems=True, e=True))
>
> dags_menu = pm.menu(menu_obj, label=menu_label, parent=main_window,
> tearOff=True)
>
>
> project_menu(dags_menu)
> polygon_menu(dags_menu)
> object_menu(dags_menu)
> script_menu(dags_menu)
> material_menu(dags_menu)
> rigging_menu(dags_menu)
> camera_menu(dags_menu)
> light_menu(dags_menu)
> render_menu(dags_menu)
>
>
> # menu Items
> def project_menu(dags_menu):
> # Main Submenu Project
> # pm.setParent('..', menu=True)
> # dags_menu = pm.menu(menu_obj, label=menu_label, parent=main_window,
> tearOff=True)
> pm.menuItem(label='Project', subMenu=True, parent=dags_menu, tearOff=True)
> # set project
> pm.menuItem(
> label='Set Project',
> command='SetProject',
> image='fileOpen.png',
> sourceType='mel',
> optionBox=False,
> visible=True,
> )
>
> pm.menuItem(divider=True)
> # save
> pm.menuItem(
> label='Save',
> command='SaveScene',
> image='save.png',
> sourceType='mel',
> optionBox=False,
> visible=True,
> )
> # save as
> pm.menuItem(
> label='Save Scene As...',
> command='SaveSceneAs',
> image='save.png',
> sourceType='mel',
> optionBox=False,
> visible=True,
> )
> # save incremental
> pm.menuItem(
> label='Increment Save',
> command='IncrementAndSave',
> image='saveToShelf.png',
> sourceType='mel',
> optionBox=False,
> visible=True,
> )
>
> Thanks!
> D.
>
> --
> 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/1b086fbd-ac54-435e-b4e7-7d90d1943eb3n%40googlegroups.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/CAJLC81Omy4V1XC6-7C-xb58C8qAspHhm1wZEav_7GEwYCxwu8A%40mail.gmail.com.


Re: [Maya-Python] Maya 2024 pyMel ;(

2023-04-01 Thread Justin Israel
Almost all of those calls have an equivalent maya cmds function, with the
difference that you pass the string name of the ui object returned from
previous ui calls. So just look at the Maya cmds python api.

Getting the main window name can be done with a call into mel:

gMainWindow = maya.mel.eval('$temp1=$gMainWindow')


On Sun, 2 Apr 2023, 10:36 am DGFA DAG's GRAPHIC & FOTO ART, <
gerome@gmail.com> wrote:

> Hi,
> in Maya 2024 is no more pymel available so I have to switch to what ever...
>
> But I struggle with Maya cmds.
> How can I translate this to cmds?
>
> import pymel.core as pm
> # import os
> # import maya.mel as mel
> # main call
>
> def dags_menu():
> # call menu objects
> main_window = pm.language.melGlobals['gMainWindow']
> menu_obj = 'DagsMenu'
> menu_label = 'Dags Tools'
>
> if pm.menu(menu_obj, label=menu_label, parent=main_window, exists=True):
> pm.deleteUI(pm.menu(menu_obj, deleteAllItems=True, e=True))
>
> dags_menu = pm.menu(menu_obj, label=menu_label, parent=main_window,
> tearOff=True)
>
>
> project_menu(dags_menu)
> polygon_menu(dags_menu)
> object_menu(dags_menu)
> script_menu(dags_menu)
> material_menu(dags_menu)
> rigging_menu(dags_menu)
> camera_menu(dags_menu)
> light_menu(dags_menu)
> render_menu(dags_menu)
>
>
> # menu Items
> def project_menu(dags_menu):
> # Main Submenu Project
> # pm.setParent('..', menu=True)
> # dags_menu = pm.menu(menu_obj, label=menu_label, parent=main_window,
> tearOff=True)
> pm.menuItem(label='Project', subMenu=True, parent=dags_menu, tearOff=True)
> # set project
> pm.menuItem(
> label='Set Project',
> command='SetProject',
> image='fileOpen.png',
> sourceType='mel',
> optionBox=False,
> visible=True,
> )
>
> pm.menuItem(divider=True)
> # save
> pm.menuItem(
> label='Save',
> command='SaveScene',
> image='save.png',
> sourceType='mel',
> optionBox=False,
> visible=True,
> )
> # save as
> pm.menuItem(
> label='Save Scene As...',
> command='SaveSceneAs',
> image='save.png',
> sourceType='mel',
> optionBox=False,
> visible=True,
> )
> # save incremental
> pm.menuItem(
> label='Increment Save',
> command='IncrementAndSave',
> image='saveToShelf.png',
> sourceType='mel',
> optionBox=False,
> visible=True,
> )
>
> Thanks!
> D.
>
> --
> 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/1b086fbd-ac54-435e-b4e7-7d90d1943eb3n%40googlegroups.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/CAPGFgA1iznu-EF3b7EwonVbutKnOoO1MTmpPRxkgNmYHggfMHw%40mail.gmail.com.