Message 1 of 1
External drop callback

Not applicable
07-26-2018
02:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm currently trying to create a python script in which you can assign assets from our pipeline to particularly named locators which represent an asset of another vendor. We have an external browser with which you can browse through all assets inside the pipeline. Dragging and dropping an asset into a texteditor it gives the assets unique ID.
I'd like to use that in my script so assigning assets is just a task of dragging and dropping these assets from the browser into my maya UI. Idealy i'd simply like to drop it into a frameLayout which then runs a procedure I define.
Although when I try to do that my mouse indicates that dropping that string onto the layout is not possible.
Does anyone know a way how to make that work? I know I could have a textfield where I can drop the string into and then run the procedure but I'd really prefer to have it onto the framelayout so that you dont have to expand it to assign an asset. Else is there somewhat like a dropField or anything like that? I can't find a whole lot about this with google and would be more than happy if someone could help me out.
Cheers,
Florens
I'm currently trying to create a python script in which you can assign assets from our pipeline to particularly named locators which represent an asset of another vendor. We have an external browser with which you can browse through all assets inside the pipeline. Dragging and dropping an asset into a texteditor it gives the assets unique ID.
I'd like to use that in my script so assigning assets is just a task of dragging and dropping these assets from the browser into my maya UI. Idealy i'd simply like to drop it into a frameLayout which then runs a procedure I define.
Although when I try to do that my mouse indicates that dropping that string onto the layout is not possible.
Does anyone know a way how to make that work? I know I could have a textfield where I can drop the string into and then run the procedure but I'd really prefer to have it onto the framelayout so that you dont have to expand it to assign an asset. Else is there somewhat like a dropField or anything like that? I can't find a whole lot about this with google and would be more than happy if someone could help me out.
Cheers,
Florens