Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > PYTHON Development
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

Drag object attributes on tag

 Post Reply Post Reply
Author
Message
virusbear View Drop Down
Member
Member


Joined: 2017 Mar 18
Online Status: Offline
Posts: 4
Post Options Post Options   Quote virusbear Quote  Post ReplyReply Direct Link To This Post Topic: Drag object attributes on tag
    Posted: 2017 Jul 21 at 8:38am
I'm trying to create a tag plugin that changes an object's parameter based on parameters of another object.
The user should decide which parameters should be linked by dragging those into the python tag like overriding a texture tag with a new texture.

Is there a way to enable drag&drop for tag plugins and how would you access the attributes in python code?




Edited by virusbear - 2017 Jul 21 at 8:39am
Back to Top
gr4ph0s View Drop Down
Member
Member


Joined: 2015 Jul 07
Location: France
Online Status: Offline
Posts: 437
Post Options Post Options   Quote gr4ph0s Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Jul 22 at 9:40am
I guess you have everything needed in this topic.
http://www.plugincafe.com/forum/forum_posts.asp?TID=13503

If not feel free to ask.
Technical lover.
Back to Top
virusbear View Drop Down
Member
Member


Joined: 2017 Mar 18
Online Status: Offline
Posts: 4
Post Options Post Options   Quote virusbear Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Jul 22 at 1:09pm
That's not quite what I'm looking for. 
I want to recreate what Greyscalegorilla did to their Signal plugin where you can drag and drop a parameter on the tag which then is able to modify the parameter. When I drag an attribute on a python tag for example I don't be able to move the parameter on the tag.

This is how it look if I drag a parameter on a "normal" tag:
https://drive.google.com/open?id=0B_fI3gEuo7teYWN4ZXJ1b19MSXc

And this how it looks with a Signal tag:
https://drive.google.com/open?id=0B_fI3gEuo7teSVVvZHFSYUU1V0k

How do I achieve it without creating a multi line String interface?

I browsed the whole internet for a solution but did not find any suitable for this case.
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1608
Post Options Post Options   Quote Andreas Block Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Jul 24 at 2:39am
Hi,

this is currently a limitation in Python. Sorry.
In C++ you can use MSG_DRAGANDDROP, there's a code example in the NodeData Manual, but this message is not yet available in the Python SDK.

Cheers,
Andreas
SDK Support Engineer
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.