Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 9:08 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: SetLayer() help-topic is incorrect
PostPosted: March 3rd, 2008, 4:41 pm 
Offline

Joined: July 7th, 2005, 10:44 am
Posts: 16
Hi,

Something in the help-topic on the SetLayer function seems quite incorrect:

The help-function states the following:

"This function will set the layer position of an Object. This function is useful for making Objects appear above and below other Objects on the screen, for example, if you want to move an object to the front of the screen, you could set the layer number to 0, which is the top layer."

In my version of Opus though, this is exactly the other way around:
the cloned objects with a higher SetLayer-value appear on top of the ones with a lower SetLayer-value.

My version of Opus: v6.00
I am running Opus on Windows Vista. There the problem appears, as well on the Windows XP system's where I run the published program.

It isn't really that big of an issue. It's not right though :).

Gr,
Paul


Top
 Profile  
 
 Post subject:
PostPosted: March 4th, 2008, 2:02 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
I seem to recall an inconsistency in the explanation. Check all four resources... both helpfiles and user-guides for Opus and Opus Script.

The way I've come to understand it, at runtime all objects are "flattened" into one presentation level when a page is displayed (some obj may be hidden or partially blocked from view if they were lower in the organizer order). The SetLayer commands allow you to control that.... by moving them relative to that Zero level. It goes both + and -. ( -10 to -1 to 0 to +1 to +10 )

I hope that's a right explanation.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: March 4th, 2008, 3:47 pm 
Offline

Joined: July 7th, 2005, 10:44 am
Posts: 16
Ah right. I understand what you mean.
I think this has to be clearified in the helpfiles though.

Thanks for your reply :).


Top
 Profile  
 
 Post subject:
PostPosted: March 5th, 2008, 11:04 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
I don't know about this particular case, but there are quite a few errors in the help files.

Sandy

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject: Re: SetLayer() help-topic is incorrect
PostPosted: October 26th, 2010, 1:10 am 
Offline

Joined: July 12th, 2009, 10:33 am
Posts: 124
The help guide also puzzled me for a while. It states "if you want to move an object to the front of the screen, you could set the layer number to 0, which is the top layer.", but I have definitely had to do the reverse to get the effect I am looking for. For me, 1 is at the back and 100 the front. I am working with clones, but I checked it with normal objects in the attached file.
Dan

PS. This needs moving to advanced


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

_________________
V9.6. Windows 10. Testing on PC, Mac, iPad.


Last edited by dan1 on October 26th, 2010, 6:51 am, edited 2 times in total.

Top
 Profile Visit website  
 
 Post subject: Re: SetLayer() help-topic is incorrect
PostPosted: October 26th, 2010, 2:38 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Quote:
to get the effect I am looking for. For me, 1 is at the back and 100 the front.
Wow, that's weird.
I have not proven it out heuristically, but I have had good success 'elevating to front' with values of +1 to +10, and 'moving back' with values of -1 to -10. Everything I've done has been with host objects and not clones however.

IMO, '0' layer is the normal layer where everything is displayed by default (and any perceived stacking is based on position in the Opus tree).

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject: Re: SetLayer() help-topic is incorrect
PostPosted: November 2nd, 2010, 8:15 am 
Offline

Joined: July 12th, 2009, 10:33 am
Posts: 124
Hi

The other problem I am having with this is that even if you move something to the top layer, a mouse click still selects and drags the object that was originally on top, even if it is now completely masked by another. Plus a failed drag can cancel all the layer info (see attached).

I am dealing with up to 50 clones, so if long scripts are needed to check the present location of all other objects on each click, then it could slow everything to a crawl.

Anyone any experience of this?
Many thanks
Dan


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

_________________
V9.6. Windows 10. Testing on PC, Mac, iPad.


Top
 Profile Visit website  
 
 Post subject: Re: SetLayer() help-topic is incorrect
PostPosted: November 2nd, 2010, 10:12 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Tricky one this. I thought Lar had started a discussion and some examples about layering, but cannot find them.

It certainly is possible to recreate this in script but as you say it's finding the least intensive method to handle fifty clones. Our shuffle example is locked at twelve clones, but that's because it's pulling images into each frame.

http://www.live.interaktiv.co.uk/index. ... Itemid=166

If I had three wishes, having 'physically' layering built in would be number two :-)

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: SetLayer() help-topic is incorrect
PostPosted: November 2nd, 2010, 11:38 am 
Offline

Joined: July 12th, 2009, 10:33 am
Posts: 124
Thanks Mack.

The attached should work with lots of clones and without too much processing. I've basically turned off the 'stop clicks passing through' so that every object in the pile registers when you click on it. The top one is moved, but others can be brought to the top instead. This may be a bit long-winded, but I had half an eye on the arrays I'm using in my project. The only problem now is that I did have an object covering the whole of the back of the screen picking up loose clicks. I'll have to think of another solution for that.

Cheers
Dan


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

_________________
V9.6. Windows 10. Testing on PC, Mac, iPad.


Top
 Profile Visit website  
 
 Post subject: Re: SetLayer() help-topic is incorrect
PostPosted: November 2nd, 2010, 1:03 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Quote:
that I did have an object covering the whole of the back of the screen picking up loose clicks. I'll have to think of another solution for that.
Try Enable(false) and Enable(true).

Start a new thread if the scope of problem expands.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject: Re: SetLayer() help-topic is incorrect
PostPosted: November 2nd, 2010, 9:43 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Mack wrote:
Quote:
Tricky one this. I thought Lar had started a discussion and some examples about layering, but cannot find them.

Maybe you are referring to this discussion...
viewtopic.php?f=4&t=4102&hilit=setlayer
Topic was related to stacking buttons.

(there were a couple sample/test pubs there for download, but the last one posted was probably 'simplified' and so easier to pick-up on)

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject: Re: SetLayer() help-topic is incorrect
PostPosted: November 3rd, 2010, 6:35 am 
Offline

Joined: July 12th, 2009, 10:33 am
Posts: 124
Hi

The solution in my attachment got me there thanks. It was more complicated than I had thought as when you click on a stack of objects, their mouse-click scripts seem to fire off in the original editor order starting from the top (ie. visual layering is again ignored). This all created a bit of a tangle re. the output. I got round the problem by running a small script from each object, staking claim to being the TopLayer of the objects clicked (their visual layers are stored in an array). My main scripts were then activated by the mouse click passing through to the background, which was always the last to trigger. These background scripts picked up and used the TopLayer (by now decided).

I'm not sure if that makes sense, or if this is the best solution, but it works.
Cheers
Dan

_________________
V9.6. Windows 10. Testing on PC, Mac, iPad.


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 36 guests


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