Drag and Drop in A.M.?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 04/12/2012 at 11:48, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   R13 
    Platform:    Mac  ;  
    Language(s) :     C++  ;

    ---------
    Hello all,

    I've been trying to get information from dragging an attribute and dropping into something and then  getting data from it, such as name, type, etc, using Drag and Drop.  And after following Robert's advice in this thread I was able to get it working perfectly.

    But it only works by dragging the attribute into a GeDialog/GeUserArea, and I was wondering if it was possible to do the same thing, get information about what attribute was being dragged and such, from inside the A.M.. Such as  dragging an attribute into a multiline string.

    I'm trying to figure out if it's even possible, before I spend even more time trying to figure out how to do it.

    Thanks for help!

    Dan



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 05/12/2012 at 04:27, xxxxxxxx wrote:

    Have you tried listening for the message MSG_DESCRIPTION_CHECKDRAGANDDROP in your plugin's Message() function?

    That's what you do for LINK elements and I think it also works for in/exclude lists. Not sure if it works for multiline edits though, but worth a try.

    Steve



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 05/12/2012 at 09:11, xxxxxxxx wrote:

    Hi Steve,

    I should have mentioned I did try to use MSG_DESCRIPTION_CHECKDRAGANDDROP, and it is getting called when an object is being dropped in a Link.   Thanks for trying, I didn't think be possible, I was just hoping it would.

    Dan


Log in to reply