Skip to content

pymel Maya 2024 #467

@Design0r

Description

@Design0r

Hi, quick question about Maya 2024.
I'm not sure if this is a bug or if im doing something wrong.
If i execute following pymel script on a fresh maya start it always returns true and runs the print command the first time i execute this snippet.
It doesnt matter how the window is called. On the second and any following execute it works as expected.

if pm.window("just_some_random_text", exists=True):
    print("yep")

changing from the pymel api to maya.cmds:

if cmds.window("just_some_random_text", exists=True):
    print("yep")

always works, even the first time (On a new Maya instance). This seems to only be a problem in maya 2024. I tried in in 2023 and the pymel version works properly.
Any Idea whats causing this behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions