Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileDef doesn't work properly #1032

Closed
2 tasks done
MustafaJafar opened this issue Nov 29, 2024 · 0 comments · Fixed by #1033
Closed
2 tasks done

FileDef doesn't work properly #1032

MustafaJafar opened this issue Nov 29, 2024 · 0 comments · Fixed by #1033
Assignees
Labels
community Issues and PRs coming from the community members type: bug Something isn't working

Comments

@MustafaJafar
Copy link
Contributor

MustafaJafar commented Nov 29, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

when using a FileDef e.g.

FileDef(
    "reviewable_image",
    folders=False,
    extensions=[".jpg", ".png", ".tif", ".exr"],
    single_item=True,
    allow_sequences=True,
    label="Image reviewable representations",
    extensions_label="Multiple Image reviewable items",
),

Tested in Maya and Houdini:

  1. clicking on this icon, result in this Error:
    TypeError: FilesWidget._on_context_menu_requested() missing 1 required positional argument: 'valid_index'
    Image

In Houdini :

  1. Drag and drop a new item doesn't replace the existing item. (when having single_item=True)
  2. Drag and drop a new item doesn't add the item to the existing list. (when having single_item=False)

Expected Behavior:

It should work normally.

Version

1.0.0

What platform you are running on?

Windows

Steps To Reproduce:

  1. Add a FileDef in a Houdini plugin
  2. Try steps mentioned above.

Are there any labels you wish to add?

  • I have added the relevant labels to the bug report.

Relevant log output:

Additional context:

No response

@MustafaJafar MustafaJafar added community Issues and PRs coming from the community members type: bug Something isn't working labels Nov 29, 2024
@MustafaJafar MustafaJafar changed the title FileDef doesn't work properly in Houdini FileDef doesn't work properly Nov 29, 2024
@iLLiCiTiT iLLiCiTiT self-assigned this Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Issues and PRs coming from the community members type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants