RE: TIP: isImagLoaded function
OOPS! I assumed images were stack-global! Slap me again! I'll fix it later ;) cheers Xavier > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ken Ray > Sent: Thursday, June 23, 2005 20:25 > To: Use Revolution List > Subject: Re: TIP: isImagLoaded function > > On 6/23/05 1:13 PM, "MisterX" <[EMAIL PROTECTED]> wrote: > > > Ken, > > > > Wrong, it, scans all the stacks (listed in the windows variable)... > > You misunderstood me, Xavier. I didn't say that it only > scanned one stack. I said that it wasn't comprehensive enough > to be useful. When you ask for: > > put the number of images in stack > > You don't get all the images on all cards of the stack - only > the "current" > card (whatever is the one you'd see when the stack opens), > and it doesn't go into groups, etc. You can see this by > making a simple stack, import one image onto card 1, then two > on card 2, then navigate back to card 1 and ask for the > "number of images" -- you get '1'... so that means there are > two images on card 2 that don't get included in your global, > and so the purpose of the function is meaningless. > > > Of course i have a bit more advanced version coming which will scan > > known and substacks and etc... ;) > > As long as the "etc" makes it comprehensive, that's great - > otherwise it is of little use, IMHO, because it promises > something it can't deliver. > > Ken Ray > Sons of Thunder Software > Web site: http://www.sonsothunder.com/ > Email: [EMAIL PROTECTED] > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage > your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: TIP: isImagLoaded function
On 6/23/05 1:13 PM, "MisterX" <[EMAIL PROTECTED]> wrote: > Ken, > > Wrong, it, scans all the stacks (listed in the windows variable)... You misunderstood me, Xavier. I didn't say that it only scanned one stack. I said that it wasn't comprehensive enough to be useful. When you ask for: put the number of images in stack You don't get all the images on all cards of the stack - only the "current" card (whatever is the one you'd see when the stack opens), and it doesn't go into groups, etc. You can see this by making a simple stack, import one image onto card 1, then two on card 2, then navigate back to card 1 and ask for the "number of images" -- you get '1'... so that means there are two images on card 2 that don't get included in your global, and so the purpose of the function is meaningless. > Of course i have a bit more advanced version coming which will scan known > and substacks and etc... ;) As long as the "etc" makes it comprehensive, that's great - otherwise it is of little use, IMHO, because it promises something it can't deliver. Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: TIP: isImagLoaded function
Ken, Wrong, it, scans all the stacks (listed in the windows variable)... Of course i have a bit more advanced version coming which will scan known and substacks and etc... ;) cheers Xavier > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ken Ray > Sent: Thursday, June 23, 2005 20:01 > To: Use Revolution List > Subject: Re: TIP: isImagLoaded function > > On 6/22/05 1:50 AM, "MisterX" <[EMAIL PROTECTED]> wrote: > > > Hi all! > > > > Here's a couple new TAOO XOSMediaLib functions im sure many > are going > > to enjoy! > > > > However I know this one feature is much needed so i can release it > > outside the TAOO framework. > > > > here's the little add-on-script i made to see if an image > existed or > > was loaded and by what stack. > > > > To use it, just script > > > > get imageNameexists(987654) > > get imageidexists(987654) > > > > -- it will return which stack or false. > > The problem is that this doesn't handle images anywhere other > than the "current" card of a stack, and they have to be raw > images sitting on the card (i.e. not in substacks or groups, etc.). > > So you should expand your code Xavier to support *any* images > in a stack, otherwise the purpose of the code (to find if > there is an image loaded of a particular ID) is defeated. You > have a good framework to get this working - you just need to > expand on it. > > Ken Ray > Sons of Thunder Software > Web site: http://www.sonsothunder.com/ > Email: [EMAIL PROTECTED] > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage > your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: TIP: isImagLoaded function
On 6/22/05 1:50 AM, "MisterX" <[EMAIL PROTECTED]> wrote: > Hi all! > > Here's a couple new TAOO XOSMediaLib functions im sure many are going to > enjoy! > > However I know this one feature is much needed so i can release it outside > the TAOO framework. > > here's the little add-on-script i made to see if an image existed or was > loaded and by what stack. > > To use it, just script > > get imageNameexists(987654) > get imageidexists(987654) > > -- it will return which stack or false. The problem is that this doesn't handle images anywhere other than the "current" card of a stack, and they have to be raw images sitting on the card (i.e. not in substacks or groups, etc.). So you should expand your code Xavier to support *any* images in a stack, otherwise the purpose of the code (to find if there is an image loaded of a particular ID) is defeated. You have a good framework to get this working - you just need to expand on it. Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
TIP: isImagLoaded function
Hi all! Here's a couple new TAOO XOSMediaLib functions im sure many are going to enjoy! However I know this one feature is much needed so i can release it outside the TAOO framework. here's the little add-on-script i made to see if an image existed or was loaded and by what stack. To use it, just script get imageNameexists(987654) get imageidexists(987654) -- it will return which stack or false. global xos function ImageIDExists imgID RefreshGlobalImages get the keys of xos filter it with "stackimages,*" sort it repeat for each line thisstack in it if imgID is among the items of xos[thisstack] then return item 2 of thisstack end repeat return false end ImageIDExists function ImageNameExists imgName RefreshGlobalImages get the keys of xos filter it with "stackimages,*" sort it repeat for each line thisstack in it if imgName is among the items of xos[thisstack] then return item 2 of thisstack end repeat return false end ImageNameExists on RefreshGlobalImages put the windows into wlist repeat for each line thisstack in wlist put the number of images in stack thisstack into imgcount if imgcount is not xos["stackimages",thisstack,"imgcount"] then put imgcount into xos["stackimages",thisstack,"imgcount"] repeat with x = 1 to imgcount put the properties of img x of stack thisstack into imgprops put imgprops["id"],imgprops["name"] into \ line x of xos["images",thisstack] end repeat end if end repeat end RefreshGlobalImages You dont have to wait anymore for another rev release to do this and rev doesn't have to waste their time on this one either. All in all we gained a lot of time! Time is money, so i hope that each time this function doesn't return false, you will be motivated to visit my paypal for that "if i had a penny each time i crashed runrev because of an image id manipulation"... ;) This script will be quickly incorporated into the xosmedialib for added media management in RunRev via TAOO. Other sub-functions of this will be added like liststackimages(All,,) etc... XOSMediaLib manages images in the TAOO workflow world - it manages among other things image ids, and names for a large library of images which are used across the TAOO framework and templates or any stack opened. It also manages icons and patterns whence you change an image id for example. It's available on MonsieurX.com with the latest release notes in the MonsieurX.com/forums. Enjoy Xavier -- http://monsieurx.com/taoo - just flow with it ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution