# Drag/dropping Onto Model Viewport

**URL:** https://forum.highend3d.com/t/drag-dropping-onto-model-viewport/2992
**Category:** Maya
**Tags:** mel
**Created:** [July 21, 2006, 1:57pm UTC](https://forum.highend3d.com/t/drag-dropping-onto-model-viewport/2992 "2006-07-21T13:57:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![naughty](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/35a633/32.png) [@naughty](https://forum.highend3d.com/u/naughty)
#### Post date: [July 21, 2006, 1:57pm UTC](https://forum.highend3d.com/t/drag-dropping-onto-model-viewport/2992/1 "2006-07-21T13:57:04Z")

</div>

Hey there, I have written a UI which supports drag/drop between it's child controls, e.g. the user can drag a swatch from the upper pane of the UI down to the Lower pane, etc...

However, I would like the user to be able to DRAG swatch controls from my UI and DROP them onto OBJECTS in the model viewports, in exactly the same way you can drag and drop materials from the HyperShade onto objects in the viewport.

does anyone know if this is possible? and how I'd go about doing it?

:nathaN
