Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently May 15th, 2024, 3:44 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Drag & Drop
PostPosted: February 16th, 2008, 1:31 pm 
Offline

Joined: December 25th, 2004, 3:31 pm
Posts: 178
Is there any plans to extended the drag & drop triggers?

The triggers are limited at the moment and reduce the flexibility of the built in drag & drop features. There is no ability to have a trigger for drop anywhere it always has to be related to drop zone.

So if you could have a drop anywhere trigger, or object moved trigger would help develop some better drag and drop applications.

Also dragged and dropped object don't maintain their layer. If you set all objects to a layer, say set to Layer2. Once any object moved or dragged to any location the layers are set to Layer0


For this message josephroddy has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: February 17th, 2008, 1:19 am 
Offline

Joined: December 29th, 2004, 12:00 pm
Posts: 230
Location: Auckland NZ
Opus: v 7.04
OS: xp & win7
not sure if I'm missing something, but - your drop zone could cover the whole page? then as soon as you move/drop the object anywhere you can trigger an action...

_________________
Opus Pro 7.04 - win10


For this message mac has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: February 17th, 2008, 8:59 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Joe,

All of these can be solved using some script and the the wonderful 'this'.

Mack


You do not have the required permissions to view the files attached to this post.

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


For this message mackavi has been thanked by : lmc


Top
 Profile Visit website  
 
 Post subject: Re: Drag & Drop
PostPosted: April 12th, 2010, 4:59 pm 
Offline

Joined: May 25th, 2008, 4:57 pm
Posts: 355
Location: Ireland
Opus: Pro 9.75
OS: Windows 10
System: MacBook Pro (Intel 2020)
Was in the middle of posting similar drop anywhere trigger request, this solution works great. But if DW could add a drop trigger anywhere trigger, on the item that is being dragged. So if it is dropped anywhere we can do some action or script. Currently you are only limited to recording or performing actions on drops into drop zones, very limiting.

Right I'm off to implement recommend solution, thanks. Searching for solution on this forum is a great way to find solutions.

_________________
Opus Pro 9.75 on MacBookPro (2020 Intel) running Parallels 19 with Windows 10 (x64)


For this message lmc has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Drag & Drop
PostPosted: April 12th, 2010, 7:55 pm 
Offline

Joined: November 11th, 2004, 4:05 am
Posts: 636
Location: Christchurch, NZ
Keep in mind what a drag is...
It's just a series of events: a mouseDown in conjunction with a mouseMove, followed by a mouseUp.

You can script just about any drag operation you want by keeping track of mouse position throughout the drag...

Paul


For this message Paul has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Drag & Drop
PostPosted: May 1st, 2010, 12:22 pm 
Offline

Joined: September 2nd, 2008, 10:50 pm
Posts: 1
I agree, i use drag and drop a lot in my applications, I Would love to see some awesome effects in this category. When you see films like James Bond and they can simply flick an image away and its gone or the ability to stretch and "Wobbly Window" an image set to drag and drop. Im not sure if it possible in the latest versions of Opus but i would love the idea of allowing you to drag an image to a certain place in a window and when you restart the application - its still in the same position...


These are just a few ideas i reckon would be great in opus, maybe some visual effects in drag and drop like Compiz Fusion..


thanks,

Jake


For this message welcometominex has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Drag & Drop
PostPosted: May 28th, 2010, 7:03 pm 
Offline

Joined: November 11th, 2004, 1:43 pm
Posts: 172
Location: Buckinghamshire, UK
mackavi,
Please expand a bit on the use of
Code:
this.down = this.getposition()

What is the difference with above and following usual syntax? first time coming across this.<variable name>

Code:
var down = this.getposition()



eomc40


For this message eomc40 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Drag & Drop
PostPosted: May 28th, 2010, 9:04 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
this is a keyword that refers to the calling object whether its native, user or host.

Imagine adding the following script action to a picture object called pictureOne.

this.Hide()

The line above calls the method Hide(), with no parameters, but passes the calling object (pictureOne) using the this keyword. If you could get access to the code inside the Hide method you could use this to control any object that called the function.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Drag & Drop
PostPosted: May 29th, 2010, 3:27 pm 
Offline

Joined: November 11th, 2004, 1:43 pm
Posts: 172
Location: Buckinghamshire, UK
Hi Mackavi,


I was reading your posted file here and came across the code

this.down = this.getposition()

and wondered what the left hand side of the "=" sign meant. That's very new to me as a construct and wondered what the difference that has over

var down = this.getposition(), is it a way to capture array results?


For this message eomc40 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Drag & Drop
PostPosted: May 29th, 2010, 4:49 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
The difference is that mine is object orientated (programming) with the object's property assigned the data whereas your variable is abstract from the object.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


For this message mackavi has been thanked by : eomc40


Top
 Profile Visit website  
 
 Post subject: Re: Drag & Drop
PostPosted: January 4th, 2011, 10:21 am 
Offline

Joined: June 9th, 2008, 7:37 am
Posts: 79
Location: Kent, UK
Hi Mackavi, is 'this' new in v7? I could find no reference to it in the help file for 6.4 script.

Many thanks, Kurt.

_________________
Opus Pro 7.04
Windows XP SP3
2GB
Athlon II X2 1.6GHz
ATI RAdeon HD 3200


For this message 3buns has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Drag & Drop
PostPosted: January 4th, 2011, 3:15 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Kurt,

Don't know if it's in the help - but it's not a new thing. It's fundamental ECMA script so has probably always been there.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group