Removal of the channels is incredibly slow

Photoshop CC 2014 with all updates. My script records two songs in two channels. In the end, I delete the channels using the following function.

function deleteChannelByName (channelNameToDelete) {}

var channelRef = activeDocument.channels.getByName (channelNameToDelete);

channelRef.remove ();

}

When I run the script in the Script IDE extend and call this function to delete a channel containing a selection with a green progress bar and the title of «Reconstruction histogram...» ", a dialog box appears new, yes 9, times. It is clear a channel an incredibly slow operation. I do something wrong or is it just like that? Thank you.

Hello

Gives it a try and let me know if it's faster:

function deleteChannelByName(channelName) {
    var desc = new ActionDescriptor(),
        ref = new ActionReference();
    ref.putName( stringIDToTypeID("channel"), channelName );
    desc.putReference( stringIDToTypeID("target"), ref);
    executeAction( stringIDToTypeID("delete"), desc, DialogModes.NO );
}

// deleteChannelByName("aChannelToDelete");

Kind regards

Davide Barranca

---

www.davidebarranca.com

www.cs-extensions.com

Tags: Photoshop

Similar Questions

  • First CC2015 - interaction of the interface is incredibly slow.

    Hello!

    As shown in the topic I have a problem with that. I recently installed CC15 on a new system, all the drivers/codecs are updated.
    Play or rub through images is no problem, but interactions with the interface is incredibly slow. -> (Registration form: PCC15 - YouTube )
    Trimming or moving of clips is not very pleasant. I tried switching MPE software, no difference.


    It is exactly the same in CC14 as I tried to install it as well. Everything worked flawlessly on my system (cc14) previous, the problem started with the new facility.


    The material should not be a problem. As it worked fine on my old spec (i7 2600 k @ 4.4 Ghz/16 GB / GTX770)

    HW specs:
    Intel Xeon 2.3 ghz 10 c 2650v3
    32 GB DDR4
    WD Black drives
    GeForce GTX770

    Does anyone have a solution to this? Or can someone help me to identify the origin of problems?
    Thanks in advance people.

    Kim

    I thought I'd share the solution that worked for me on this issue.
    I just disabled windows Aero theme 7, and he began to work as fast as it should.

  • Course of the channels is really slow in CC

    I work on .net application and ran into an obstacle few performance. I have a simple method that runs through the layers of channel by index, captures the name of the channel that is indexed and if it corresponds to a predetermined variable, then it simple removes this channel. It works as written but is painfully SLOW. Being relatively new to programming, I thought it was just me and open ExtendScript to run a few test.

    var docChannels = app.activeDocument.channels;
      
    for (i = 0; i < docChannels.length; i++ ){
            alert(docChannels[i].name);
    }
    

    To run this script in a document containing only the RGB channels plus 3 other alpha channels takes about 30-40 seconds. Running the same script modified to browse about 20 layers of document only takes about 5 seconds.

    I don't know if it is a bug in Photoshop CC or not. I have not all versions prior to test. I can perform the programming method using a Try Catch statement and directly trying to delete the layer by name. This seems to work a little faster, but not by much and isn't really a good use of a Try Catch statement.

    Any insight into this problem or a better way to impliment as my method of programming would be more appreciated.

    I don't know about .net applications, but I think that the reason the javascript object Model can be slow when working with layers and layers it whenever you create an object layer, or channel all the properties of this object created. I think that the property of the histogram of construction is the main reason to slow down. It is that the document has a large canvas.

    Action eating can be much faster because you can only get the property you require and do not create a DOM object and build the histogram. Try this to see if the names of channel more quickly.

    function getProperty( psClass, psKey, index ){// integer:Class, integer:key
        var ref = new ActionReference();
        if( psKey != undefined ) ref.putProperty( charIDToTypeID( "Prpr" ), psKey );
        if(index != undefined ){
            ref.putIndex( psClass, index );
        }else{
            ref.putEnumerated( psClass , charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
        }
        try{
            var desc = executeActionGet(ref);
        }catch(e){ return; }// return on error
        if(desc.count == 0) return;// return undefined if property doesn't exists
        var dataType = desc.getType(psKey);
        switch(dataType){// not all types supported - returns undefined if not supported
            case DescValueType.INTEGERTYPE:
                return desc.getInteger(psKey);
                break;
            case DescValueType.ALIASTYPE:
                return desc.getPath(psKey);
                break;
            case DescValueType.BOOLEANTYPE:
                return desc.getBoolean(psKey);
                break;
            case DescValueType.BOOLEANTYPE:
                return desc.getBoolean(psKey);
                break;
            case DescValueType.UNITDOUBLE:
                return desc.getUnitDoubleValue(psKey);
                break;
            case DescValueType.STRINGTYPE:
                return desc.getString(psKey);
                break;
            case  DescValueType.OBJECTTYPE:
                return desc.getObjectValue(psKey);
                break;
            case  DescValueType.LISTTYPE:
                return desc.getList(psKey);
                break;
            case  DescValueType.ENUMERATEDTYPE:
                return desc.getEnumerationValue(psKey);
                break;
        }
    };
    var channelCount = app.activeDocument.channels.length;
    var channelNames = [];
    for(var channelIndex=1;channelIndex<=channelCount;channelIndex++){
        channelNames.push(getProperty(charIDToTypeID("Chnl"),charIDToTypeID("ChnN"),channelIndex));
    }
    alert(channelNames);
    
  • The mail is incredibly slow since the update to El Capitan

    Hey,.

    I use Mac OS X El Capitan v. 10.11.1 on a MacBook Pro, 2.8 GHz i7 with 16 GB of RAM. I'm 50 Mbit DSL online.

    I never had any problems with sending or receiving mail. But since I upgraded to El Capitan Mac Mail has gotten incredibly slow and almost unusable. It will take up to 10 minutes to load a simple text message or attachment of the small (less than 1 MB) image. I don't have these problems when downloading something from a Web site. Download a 3 MB file takes 1-2 seconds.

    Also sending emails is incredibly slow. It takes several minutes, also just for the mails in plain text.

    And then Mac Mail seems often to synchronize, even if there is no new messages. It displays "loading 10 of 32 messages" which is stuck and loads forever. And nothing will happen until I restart Mac Mail several times.

    I am managing 5 accounts IMAP with Mac Mail, which is more than usual but not an absurd number. In addition, I never had problems before. They are partly accounts Google App and partially Zoho.com.

    Apple: What can I do to recover usable e-mail software? I don't want to go, but I have to examine it if it takes 10 minutes for an attachment to load.

    Thank you

    That has solved it for me (found here on the forum):

    • Make a backup
    • Close mail
    • Copy the ~/Library/Containers/com.apple.mail folder to a different location (in case something goes wrong)
    • Delete the ~/Library/Containers/com.apple.mail folder
    • Restart the messaging

    You will need to reconfigure parts of the mail, but it is now much faster. Let's see if that is still true.

  • y at - it script or action to remove all the channels/alpha?

    Hello

    When I'm working on an image, I create a lot of alpha channels, y at - it script/action to remove all in 1 click?

    I run ps cs6 64 bit, windows7 64 bit

    I found a little script, but surprisingly slow

    Thank you

    You can erase the guides with an action or just go to

    View > clear Guides which can be saved in an action.

    A script that should work, gotton using the listener script plugin

    // =======================================================
    var idDlt = charIDToTypeID ("Dlt");
    var desc14 = new ActionDescriptor();
    var idnull = charIDToTypeID ("null");
    var ref1 = new ActionReference();
    var idGd = charIDToTypeID ("Gd");
    var idOrdn = charIDToTypeID ('Ordn');
    Ideal var = charIDToTypeID ("Al");
    Ref1.putEnumerated (idGd, idOrdn, ideal);
    desc14.putReference (idnull, ref1);
    executeAction (idDlt, desc14, DialogModes.NO);

  • Removal of the big board too slow

    Normal
    0

    21

    fake
    fake
    fake

    HUMAN RESOURCES
    X NONE

    MicrosoftInternetExplorer4

    Hello

    I have problem with one of my projects. I have large binary files containing measurement data. The values in the binaries are written each second. Number of samples per second is constant and equal to 5000. Values are saved using Write to binary file.vi. Data type is float array in single precision.

    I read the data in blocks of 5 minutes. It is 5000 x 60 x 5 samples per block. I have to read the data in a single table. The main problem is that there are more 4 bytes per second. This number represents the number of elements in the array, 5000 in my case.

    I try to remove the surplus items only using for loop. I put a deletion of array.vi. I need to delete items with the index (5000 * I) then I varies from 0 to 299.  It's iterations of the 300 loop with large windows so now, I have the problem with the speed of execution. I know that I can read my data in the table in clusters but I need to extract data again to single Bay.

    Any suggestions for a quick extraction of the too large number?


  • The Dreamweaver CC incredibly slow when using subversion!

    Wow! I just install Subversion (visualsvn.com) on a dedicated server on my network.

    When I turn it on for my sites in DW, it seems to work.

    But when I switch from one site to another (using the dropdown under files), he hangs for 5 minutes and told me that DW does not. If I wait, he ended up rocking on the other site, and I'm on my way.

    It is a real pain as I bounce around a site for updates, etc..

    Does anyone have a solution for this?

    Subversion is really cool.  It is riddled with problems, which could explain why DW is falling quickly.  See this related discussion, 2 weeks ago.

    Dreamweaver - plu Dungeon drop automatically

    Nancy O.

  • Prelude files to ingest the Canon XF incredibly slow - why?

    I might be missing something obvious here, but when I ingest my Canon XF 300 (Canon XF files) step media "ingest" takes a VERY long time. Note that I have been ingested media from my other cameras (Canon 5 d Mark III) for some time and the speed of ingestion are basically the same as copying the files manually. Yet, the XF files last much longer (for ingest 8 GB of material, it took 30 minutes; the same amount of GB of the 5 d would take about 4 min) and the only difference in the procedure is the media type. Note also that if I copy the same files manually from the same disks it takes a 'normal' amount of time (2-4 min).

    Arriving files on the target drive, they are in the original format and file structure, so it's as if the files were just copied. So, why does take so long?

    Thank you

    Scott

    Thanks for the report, Scott. We will try to reproduce them here and see what we find.

    Thank you

    Michael

  • Firefox works incredibly slow (as in the window is barely functional, not anything related to connection speed) when I run some games on my computer.

    Hello

    Last month, I got a strange problem with my Firefox browser in certain situations. The question is only apparent when executing some 3D games (most often when I run Diablo III). Each time these games is loaded my Firefox browser works incredibly slow. This isn't a question of a connection problem or such, the loading speed is very good, but the actual clicks, bookmark clicks, entered keyboard etc take a few seconds to register.

    I tried Firefox running in failsafe mode which immediately makes the problem disappears. However, whenever I run it in normal mode the problem will be even if I disable all plugin and simple addon. I also tried to reinstall firefox and my addons and flash player times, the problem remains.

    For what it's worth, another browser, I installed is not the problem at all (despite the same some addons installed - I only have 3 of them).

    Someone has an idea what could be the problem? Is the failsafe mode inactivate the other thing the addons and plugins listed in the addon section?

    Thanks in advance

    Disabling hardware acceleration

  • remove data from the channel

    I have several channels I want to remove a set number of data points since the start of the round, basically some data that are saved during an initialization phase, which I don't want not included in the data.  Is there an easy way to do this?

    Hello Jordan,.

    There is a command that allows you to clear the values of several channels called DataBlDel

    Command: DataBlDel


    Removes a data block in the channels.

    Call DataBlDel (ChnNoStr, ChnRow, ValNo, [ValDelOnly])

    Input parameters






    ChnNoStr Specifies one or more channels.

  • Performance - remove igdkmd64.sys monitor - its by slowing down the boot process

    Hello

    I am running windows 7 Home premium SP1 64-bit and the monitor above suggests that I try to delete the driver above because it slows down the startup / boot process

    Can someone please suggest easy steps to remove the same and if there are implications for the removal of the driver

    Hello

    What is there to process you followed to remove it... It's actually not a bad file... Its graphic driver Intel. Igdkmd64 sys is the Intel Graphics Kernel Mode Driver for Microsoft Windows 8, Windows 7, Windows Vista, and Windows XP 64 - bit operating systems.

    the igdkmd64.sys file could be the driver Intel Graphics. Have you tried to download the drivers directly from the Intel web site? If this is not the case, try using this link:

    http://www.Intel.com/p/en_US/support/detect

  • Adobe Photoshop CC 2015 is compatible with Windows 10. The mine opens, but does not seem to work correctly... INCREDIBLY slow. Does not. Must I return to Windows 8?

    Adobe photoshop cc 2015 is compatible with windows 10? Just upgraded Windows 8 and PS opens but does not work properly. INCREDIBLY SLOW. What I can do or should I return to Windows 8? Windows love 10. Disappointed.

    Hi Ravenm,

    Could you please check and make sure that Photoshop is updated to the latest version 2015.1.2

    Also, please try the steps in the following article: Optimize performance Adobe Photoshop CC

    Let me know if it helps.

    Concerning

    Tanuj

  • Mail becomes incredibly slow, but only if I download attachments

    Mail becomes incredibly slow, but only if I download attachments (photos, files pdf, etc]

    This has happened a lot lately.

    If I get a message with, say, some photos attached Works Mail very well. However, if I can download files attached to my iMac mail becomes so incredibly slow, even if I delete the email with the files. If I quit Mail and then restart the problem persists... I literally spinning beachball if I want to compose a message... everything still works, but each action takes forever. I tried to rebuild the mailbox, but it does not work. The only way to recover messages to work properly (at normal speed) is to restart the computer.

    All ideas

    [I have 24Go of ram on end of 2012 3.4 ghz iMac with a fusion 3 TB drive]

    Start Safe Mode removes the system caches that can help...

    Follow these steps to start in safe mode.

    1. Start or restart your Mac.
    2. As soon as you hear the startup tone, hold down the SHIFT key.
    3. Release the SHIFT key when you see the logo Apple appears on the screen.

    After the Apple logo appears, this may take longer than usual to reach the login screen or your office. This is because your Mac performs a check of directory of your drive to boot in safe mode.

    To leave safe mode, restart your computer without pressing any keys during startup.

    Then try to download an attachment.

  • DaqMX wait the next sample causing slow down Clock.vi

    Hello

    I have a question about the proper use of DaqMX wait for next sample clock.

    I read channels analog voltage on a map or pcie-6259.

    I would like to read as soon as possible make your comments between each of these points of single data points.

    I wish I had an error generated if I miss a data point.

    From reading the forums, I've gathered that the best way to do it is using the Timed Single Point material.

    A simplified program that I use to test this is attached.

    If I remove the DaqMX wait for next sample Clock.vi, my program seems to work.

    I added a counter to check the total time is as expected.

    For example, the program seems to work at the speed appropriate for 120.

    However, without that vi, it seems that the program does not generate a warning if I missed a sample.

    So I thought that the next sample clock waiting vi could be used to determine if a single data point has been missed using the output "is late."

    However, when I add inside as shown in the joint, the program seems to slow down considerably.

    At high rates as 120000, I get the error:-209802

    14kHz is the approximate maximum rate before you start to make mistakes.

    My question is: is this the right way to check a missed sample? I don't understand why the wait next sample Clock.vi is originally a slow down. Without this vi, the program does just what I want except that I do not have strict error control.

    My confusion may be based on a lack of understanding of real-time systems. I don't think I do 'real time' as I run on an ordinary pc, so maybe I use some features that I wouldn't.

    Thank you

    Mike

    Mike,

    You should be able to read to return delays errors and warnings by setting the DAQmx real-time-> ReportMissedSamp property.  I think that if you enable this, you will see errors or warnings (according to the DAQmx real-time-> ConvertLateErrorsToWarnings) in the case where you use read-only.  I'm a little surprised that you have measured your application works at 120 kHz without waiting for next sample clock (WFNSC), although I'm not surprised that it would be significantly faster.  I think if you call read-only, you'll read the last sample available regardless of whether you would of missed samples or not.  When you call WFNSC, DAQmx will always wait for the next, if you are late or not sample clock.  In this case, you will wait an additional sample clock that is not the case in read-only.  Once again, I expect that, in both cases, your loop would not go to 120 kHz.

    Features real-time DAQmx (hardware Timed Single Point - HWTSP) are a set of features that are optimized for a one-time operation, but also a mechanism to provide feedback as to if a request is following the acquisition.  There is nothing inherently wrong with using this feature on a non real-time OS.  However, planner of a non real-time OS is not going to be deterministic.  This means that your app 'real time' may be interrupted for a period not confined while the BONE died in the service of other applications or everything he needs to do.  DAQmx will always tell you if your application is to follow, but can do nothing to guarantee that this will happen.  Thus, your request * must * tolerant bet of this type of interruption.

    There are a few things to consider.  If it is important that you perform the action at a given rate, then you should consider using a real-time operating system, or even with an FPGA based approach.  If it is not essential to your system, you might consider using is HWTSP, where you do not declare lack samples (DAQmx simply give you the most recent example), or you could avoid HW timing all together and just use HAVE request to acquire a sample at a time.  What is appropriate depends on the requirements of your application.

    Hope that helps,

    Dan

  • Incredibly slow blackBerry 9300 smartphones, I've tried everything.

    Hey everybody!

    To start:

    I'm on Koodo

    I have a 3g 9300 curve, and it's OS is 6.0 Bundle 2391

    Storage applications: 189.6 MB used 66.4 free

    Pull dough pre:

    Memory usage: 178.7 used 77.1 free under applications.

    Device status indicates 69103008 bytes free.

    After a battery pull:

    Memory usage: 161.4 used 94.5 free

    Device status: 695473936

    I have all the standard applications provided with the Blackberry, not supplements.

    I have a few hundred MB of music on a 2 GB card.

    Now for the problem.

    I've had my crackberry for a month now, and I love it.  But last week, it has become incredibly slow, sometimes sitting for 10 minutes at a time without me being able to do anything whatsoever, and I missed a few calls telephone too.  In fact, at the ceremony of my school, I had my friend put it in her purse, and when she brought out, it was frozen with the clock displaying the start time of rewards.

    I am extremely frustrated. Here is what I tried:

    Battery pull

    Clear the log

    Cleaner memory

    Close all possible applications

    Remove the media card

    Remove languages that I don't use.

    Someone at - it ideas?

    : My battery life took a dive in the light of this situation of freezing.  It lasts usually me from about 07:00 at arouns 9 or 10 in the night, so a good 14 or 15 hours.  But now he is barely 6 hours, and which is often idle and in my pocket.

    Any help would be greatly appreciated.

    OK, so now back to your security settings and turn it off.

    There is really no need for Memory Cleaner use for most users, it does not increase any amount of memory and regularly uses single process time and causes the processor blasted animated clock.

Maybe you are looking for