Problem with Layer Align

Ok, I created a website and use ImageReady to export it to
Dreamweaver. I then converted the tables to layers and set up the
site....
http://onelongday.com
Unfortunately I forgot to set up a parent layer, to place all
the other content within, so I could align the site to center. Now
the site looks fine when viewed at 1280 x 1024 but if viewed at
1024 x 768 it is offset to the right.
I tried to create a new parent layer...aligned auto center
and then tried to select all layers, cut and paste them into the
new parent layer...but dreamweaver would not allow it.
I then tried to go into the code and write in a parent layer
around the content....still nothing.
Any ideas how to do this quickly and easily???

If you are going to use layers, you need to know these things
http://www.great-web-sights.com/g_layerlaws.asp
The text overflow is one of the worst of the problems.
For any help with your current page, you'd need to post a
link to the page
so we can see its layout problems and look at its code.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"moshpit2" <[email protected]> wrote in
message
news:fbvnip$4cb$[email protected]..
> Hey Bregent,
>
> Thanks for telling what I did wrong, but what I really
need to know is how
> to
> fix it. As for my choice of using layers, the code seems
so much lighter
> than
> tables. At least from my testing, page loading seems to
go a lot faster
> with
> layers, what is the downside to using them?
>

Similar Messages

  • Problems With Data Alignment when spooling to a CSV file

    Dear members,
    I am spooling data to a csv file. My data contains 3 columns
    For example :
    col1 col2 col3
    USD,10000033020000000000000,-1144206.34
    The 2nd column is alphanumeric, it contains some rows which have only numbers and some which have numbers and alphabets.
    The 3rd column contains only numbers with positive or negative values.
    I am facing problem with alignment. when i open the spooled csv file then i find that the 3rd column is aligned to right .
    In the 2nd column, rows which have only numbers are right justified and rows which have alpha numeric data are left justified.
    I tried using the JUSTIFY function in sql plus but still it is not working for me.
    Can any body give your opinion on how to control the alignment in spooled csv files.
    Your responce is highly appreciated.
    Here is my code :
    WHENEVER SQLERROR CONTINUE
    SET TIMING off
    set feedback off
    set heading off
    set termout OFF
    set pagesize 0
    set linesize 200
    set verify off
    set trimspool ON
    SET NEWPAGE NONE
    col to_char(glcd.segment1||glcd.segment2||glcd.segment3||glcd.segment4||glcd.segment5||glcd.segment6) ALIAS CONCATENATED_SEGMENTS
    col CONCATENATED_SEGMENTS justify left
    col to_char(decode(glbal.currency_code,glsob.currency_code,
    (begin_balance_dr - begin_balance_cr) + (period_net_dr -period_net_cr),
    (begin_balance_dr_beq - begin_balance_cr_beq) + (period_net_dr_beq -period_net_cr_beq))) alias Total_Functional_Currency
    col Total_Functional_Currency justify left
    COlUMN V_INSTANCE NEW_VALUE V_inst noprint
    select trim(lower(instance_name)) V_INSTANCE
    from v$instance;
    column clogname new_value logname
    select '/d01/oracle/'|| '&&V_inst' ||'out/outbound/KEMET_BALANCE_FILE_EXTRACT' clogname from dual;
    spool &&logname..csv
    SELECT glsob.currency_code ||','||
    to_char(glcd.segment1||glcd.segment2||glcd.segment3||glcd.segment4||glcd.segment5||glcd.segment6) ||','||
    to_char(decode(glbal.currency_code,glsob.currency_code,
    (begin_balance_dr - begin_balance_cr) + (period_net_dr -period_net_cr),
    (begin_balance_dr_beq - begin_balance_cr_beq) + (period_net_dr_beq -period_net_cr_beq)))
    from gl_balances glbal , gl_code_combinations glcd , gl_sets_of_books glsob
    where      period_name = '&1' /* Period Name */
    and      glbal.translated_flag IS NULL
    and      glbal.code_combination_id = glcd.code_combination_id
    and      glbal.set_of_books_id = glsob.set_of_books_id
    and      glbal.actual_flag = 'A'
    and      glsob.short_name in ('KEC-BOOKS' , 'KUE' , 'KEU','KEMS', 'KEAL' , 'KEAL-TW' , 'KEAL-SZ' , 'KEAM')
    and glcd.segment1 != '05'
    and decode(glbal.currency_code , glsob.currency_code , (begin_balance_dr - begin_balance_cr) + (period_net_dr -period_net_cr) ,
    (begin_balance_dr_beq - begin_balance_cr_beq) + (period_net_dr_beq -period_net_cr_beq)) != 0
    and glbal.template_id IS NULL
    ORDER BY glcd.segment1 || glcd.segment2 || glcd.segment3 || glcd.segment4 || glcd.segment5 || glcd.segment6
    spool off
    SET TIMING on
    set termout on
    set feedback on
    set heading on
    set pagesize 35
    set linesize 100
    set echo on
    set verify on
    Thanks
    Sandeep

    i think you do not have to worry about your code when you say that the plain texts created are ok when opened on the notepad. it is on the excel that you will need some adjustments. not sure about this but you might want to read about the applying styles in the excel by going through it's help menu.

  • Problem with layer sets opening

    Hi,
    I have a problem open layer sets. In my script I get layers index and then iterate throught this layers.
    Here is the script:
    function getAllLayersByIndex(){
           function getNumberLayers(){
           var ref = new ActionReference();
           ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID("NmbL") )
           ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
           return executeActionGet(ref).getInteger(charIDToTypeID("NmbL"));
           function hasBackground() {
               var ref = new ActionReference();
               ref.putProperty( charIDToTypeID("Prpr"), charIDToTypeID( "Bckg" ));
               ref.putEnumerated(charIDToTypeID( "Lyr " ),charIDToTypeID( "Ordn" ),charIDToTypeID( "Back" ))//bottom Layer/background
               var desc =  executeActionGet(ref);
               var res = desc.getBoolean(charIDToTypeID( "Bckg" ));
               return res  
           function getLayerType(idx,prop) {      
               var ref = new ActionReference();
               ref.putIndex(charIDToTypeID( "Lyr " ), idx);
               var desc =  executeActionGet(ref);
               var type = desc.getEnumerationValue(prop);
               var res = typeIDToStringID(type);
               return res  
           function getLayerVisibilityByIndex( idx ) {
               var ref = new ActionReference();
               ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "Vsbl" ));
               ref.putIndex( charIDToTypeID( "Lyr " ), idx );
               return executeActionGet(ref).getBoolean(charIDToTypeID( "Vsbl" ));;
           var cnt = getNumberLayers()+1;
           var res = new Array();
           if(hasBackground()){
        var i = 0;
              }else{
        var i = 1;
           var prop =  stringIDToTypeID("layerSection");
           for(i;i<cnt;i++){
              var temp = getLayerType(i,prop);
              if(temp != "layerSectionEnds") res.push(i);
           return res;
           function getLayerVisibilityByIndex( idx ) {
               var ref = new ActionReference();
               ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "Vsbl" ));
               ref.putIndex( charIDToTypeID( "Lyr " ), idx );
               return executeActionGet(ref).getBoolean(charIDToTypeID( "Vsbl" ));
    function makeActiveByIndex( idx, visible ){
        var desc = new ActionDescriptor();
          var ref = new ActionReference();
          ref.putIndex(charIDToTypeID( "Lyr " ), idx)
          desc.putReference( charIDToTypeID( "null" ), ref );     
          desc.putBoolean( charIDToTypeID( "MkVs" ), visible );
       executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );
    var groups = getAllLayersByIndex();
        for(var i = groups.length-1; i >= 0 ; i--) {
          makeActiveByIndex( groups[i], true );
          ....working with layers....
    I think, my problem is in function makeActiveByIndex, because it doesn't make active a folder and doesn't open it.
    You can see it on this picture. Active layer set is "Skupina 1" and it is in layer set "hlavicka". But "hlavicka" is not open. WHY??
    Can you help me fix this problem??
    Thank you Domaneni

    Hi, for the past days I've worked on a script to toogle opening and closing layeSets, I've taken the code that TeddyBear posted here: http://ps-scripts.com/bb/viewtopic.php?p=14773 and adjusted it a little bit, and that's what I came up with, I hope it will help you:
    <javascriptresource>
      <name>BCM> ToogleOpen_CloseGroup...</name>
      <category>BCM</category>
    </javascriptresource>
    //For code readability
    // http://ps-scripts.com/bb/viewtopic.php?f=9&t=3235
    function getActiveLayerIndex() {
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "ItmI" ));
        ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
        return executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ));
    function cTID(s){return charIDToTypeID(s)}
    function sTID(s){return stringIDToTypeID(s)}
    // =============================
    // The main function
    function closeGroup(layerSet) {
       var m_Name = layerSet.name;
       var m_Opacity = layerSet.opacity;
       var m_BlendMode = layerSet.blendMode;
       var m_LinkedLayers = layerSet.linkedLayers;
      var currINDEX = getActiveLayerIndex();
       var m_bHasMask = hasLayerMask();
       if(m_bHasMask) loadSelectionOfMask();
       if(layerSet.layers.length <= 1) {
          addTempLayerSetIn(currSetIDX-1);
          makeActiveByIndex(currSetIDX+2, false);
          ungroup();
          groupSelected(m_Name);
          deleteTempLayerSetbyIdx(currSetIDX+1);
       } else {
           makeActiveByIndex(currSetIDX, false);
          ungroup();
          groupSelected(m_Name);
       var m_Closed = activeDocument.activeLayer;
       m_Closed.opacity = m_Opacity;
       m_Closed.blendMode = m_BlendMode;
       for(x in m_LinkedLayers) {
          if(m_LinkedLayers[x].typename == "LayerSet")
             activeDocument.activeLayer.link(m_LinkedLayers[x]);
       if(m_bHasMask) maskFromSelection();
       return m_Closed;
    // =============================
    // Below are all necessary subroutines for the main function to work
    function ungroup() {
       var m_Dsc01 = new ActionDescriptor();
       var m_Ref01 = new ActionReference();
       m_Ref01.putEnumerated( cTID( "Lyr " ), cTID( "Ordn" ), cTID( "Trgt" ) );
       m_Dsc01.putReference( cTID( "null" ), m_Ref01 );
       try {
          executeAction( sTID( "ungroupLayersEvent" ), m_Dsc01, DialogModes.NO );
       } catch(e) {}
    function addLayer() {
       var m_ActiveLayer          =    activeDocument.activeLayer;
       var m_NewLayer             =    activeDocument.layerSets.add();
       m_NewLayer.move(m_ActiveLayer, ElementPlacement.PLACEBEFORE);
       return m_NewLayer;
    function hasLayerMask() {
       var m_Ref01 = new ActionReference();
       m_Ref01.putEnumerated( sTID( "layer" ), cTID( "Ordn" ), cTID( "Trgt" ));
       var m_Dsc01= executeActionGet( m_Ref01 );
       return m_Dsc01.hasKey(cTID('Usrs'));
    function activateLayerMask() {
       var m_Dsc01 = new ActionDescriptor();
       var m_Ref01 = new ActionReference();
       m_Ref01.putEnumerated( cTID( "Chnl" ), cTID( "Chnl" ), cTID( "Msk " ) );
       m_Dsc01.putReference( cTID( "null" ), m_Ref01 );
       try {
          executeAction( cTID( "slct" ), m_Dsc01, DialogModes.NO );
       } catch(e) {
          var m_TmpAlpha = new TemporaryAlpha();
          maskFromSelection();
          activateLayerMask();
          m_TmpAlpha.consume();
    function deleteMask(makeSelection) {
       if(makeSelection) {
          loadSelectionOfMask();
       var m_Dsc01 = new ActionDescriptor();
       var m_Ref01 = new ActionReference();
       m_Ref01.putEnumerated( cTID( "Chnl" ), cTID( "Ordn" ), cTID( "Trgt" ) );
       m_Dsc01.putReference( cTID( "null" ), m_Ref01 );
       try {
          executeAction( cTID( "Dlt " ), m_Dsc01, DialogModes.NO );
       } catch(e) {}
    function selectLayerMask() {
       var m_Dsc01 = new ActionDescriptor();
       var m_Ref01 = new ActionReference();
       m_Ref01.putEnumerated(cTID("Chnl"), cTID("Chnl"), cTID("Msk "));
       m_Dsc01.putReference(cTID("null"), m_Ref01);
       m_Dsc01.putBoolean(cTID("MkVs"), false );
       try {
          executeAction(cTID("slct"), m_Dsc01, DialogModes.NO );
       } catch(e) {}
    function loadSelectionOfMask() {
       selectLayerMask();
       var m_Dsc01 = new ActionDescriptor();
       var m_Ref01 = new ActionReference();
       m_Ref01.putProperty( cTID( "Chnl" ), cTID( "fsel" ) );
       m_Dsc01.putReference( cTID( "null" ), m_Ref01 );
       var m_Ref02 = new ActionReference();
       m_Ref02.putEnumerated( cTID( "Chnl" ), cTID( "Ordn" ), cTID( "Trgt" ) );
       m_Dsc01.putReference( cTID( "T   " ), m_Ref02 );
       try {
          executeAction( cTID( "setd" ), m_Dsc01, DialogModes.NO );
       } catch(e) {}
    function maskFromSelection() {
       if(!hasLayerMask()) {
          var m_Dsc01 = new ActionDescriptor();
          m_Dsc01.putClass( cTID( "Nw  " ), cTID( "Chnl" ) );
          var m_Ref01 = new ActionReference();
          m_Ref01.putEnumerated( cTID( "Chnl" ), cTID( "Chnl" ), cTID( "Msk " ) );
          m_Dsc01.putReference( cTID( "At  " ), m_Ref01 );
          m_Dsc01.putEnumerated( cTID( "Usng" ), cTID( "UsrM" ), cTID( "RvlS" ) );
          try {
             executeAction( cTID( "Mk  " ), m_Dsc01, DialogModes.NO );
          } catch(e) {
             activeDocument.selection.selectAll();
             maskFromSelection();
       } else {
          if(confirm("Delete existing mask?", true, "Warning")) {
             activateLayerMask();
             deleteMask();
    function groupSelected(name) {
       var m_Dsc01 = new ActionDescriptor();
       var m_Ref01 = new ActionReference();
       m_Ref01.putClass( sTID( "layerSection" ) );
       m_Dsc01.putReference(  cTID( "null" ), m_Ref01 );
       var m_Ref02 = new ActionReference();
       m_Ref02.putEnumerated( cTID( "Lyr " ), cTID( "Ordn" ), cTID( "Trgt" ) );
       m_Dsc01.putReference( cTID( "From" ), m_Ref02 );
       var m_Dsc02 = new ActionDescriptor();
       m_Dsc02.putString( cTID( "Nm  " ), name);
       m_Dsc01.putObject( cTID( "Usng" ), sTID( "layerSection" ), m_Dsc02 );
       executeAction( cTID( "Mk  " ), m_Dsc01, DialogModes.NO );
       return activeDocument.activeLayer;
    function addToSelection(layerName) {
       var m_Dsc01 = new ActionDescriptor();
       var m_Ref01 = new ActionReference();
       m_Ref01.putName( cTID( "Lyr " ), layerName );
       m_Dsc01.putReference( cTID( "null" ), m_Ref01 );
       m_Dsc01.putEnumerated( sTID( "selectionModifier" ), sTID( "selectionModifierType" ), sTID( "addToSelection" ) );
       m_Dsc01.putBoolean( cTID( "MkVs" ), false );
       try {
          executeAction( cTID( "slct" ), m_Dsc01, DialogModes.NO );
       } catch(e) {}
    function TemporaryAlpha() {
       activeDocument.selection.store((this.alpha = activeDocument.channels.add()));
       activeDocument.selection.deselect();
       this.consume = function() {
          activeDocument.selection.load(this.alpha);
          this.alpha.remove();
    function makeActiveByIndex( idx, visible ){
         if( idx.constructor != Array ) idx = [ idx ];
         for( var i = 0; i < idx.length; i++ ){
              var desc = new ActionDescriptor();
              var ref = new ActionReference();
              ref.putIndex(charIDToTypeID( 'Lyr ' ), idx[i])
              desc.putReference( charIDToTypeID( 'null' ), ref );
              if( i > 0 ) {
                   var idselectionModifier = stringIDToTypeID( 'selectionModifier' );
                   var idselectionModifierType = stringIDToTypeID( 'selectionModifierType' );
                   var idaddToSelection = stringIDToTypeID( 'addToSelection' );
                   desc.putEnumerated( idselectionModifier, idselectionModifierType, idaddToSelection );
              desc.putBoolean( charIDToTypeID( 'MkVs' ), visible );
              executeAction( charIDToTypeID( 'slct' ), desc, DialogModes.NO );
    function deleteActiveLayer(){
       // =======================================================
       var idDlt = charIDToTypeID( "Dlt " );
           var desc752 = new ActionDescriptor();
           var idnull = charIDToTypeID( "null" );
               var ref529 = new ActionReference();
               var idLyr = charIDToTypeID( "Lyr " );
               var idOrdn = charIDToTypeID( "Ordn" );
               var idTrgt = charIDToTypeID( "Trgt" );
               ref529.putEnumerated( idLyr, idOrdn, idTrgt );
           desc752.putReference( idnull, ref529 );
       executeAction( idDlt, desc752, DialogModes.NO );
    function isLayerSet( idx ) {
         var propName = stringIDToTypeID( 'layerSection' );
         var ref = new ActionReference();
         ref.putProperty( charIDToTypeID( "Prpr" ) , propName);
         ref.putIndex( charIDToTypeID ( "Lyr " ), idx );
         var desc =  executeActionGet( ref );
         var type = desc.getEnumerationValue( propName );
         var res = typeIDToStringID( type );
         // alert(res);
         return res == 'layerSectionStart' ? true:false;
    function openGroup1(theGroup) {
       currSetIDX= getActiveLayerIndex();
       if(isLayerSet( currSetIDX ))
        getNamesPlusIDsOfLayerSet();
      makeActiveByIndex(currSetIDX, false);
    function getNamesPlusIDsOfLayerSet(){
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('Cnt '));
      var parId = executeActionGet(ref).getInteger(stringIDToTypeID( 'layerID' ));
       var Names=[];
       var x = 0;
       var y = 0;
       var r = 0;
       currINDEX = getActiveLayerIndex();
        var i = currINDEX;
       for(i; i > 0 ; i--){
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
            var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
            var ls = desc.getEnumerationValue(stringIDToTypeID("layerSection"));
            ls = typeIDToStringID(ls);
            // alert(layerName+": _ :"+ls);
            if(ls == "layerSectionStart"){x++};
            if(layerName.match(/^<\/Layer group/) )
              y ++;
              r = x - y;
              if(r == 0 && ls == "layerSectionEnd"){break};
              continue
            if(ls == "layerSectionContent"){makeActiveByIndex(i,false);break};
            var layerType = typeIDToStringID(desc.getEnumerationValue( stringIDToTypeID( 'layerSection' )));
            var isLayerSet =( layerType == 'layerSectionContent') ? false:true;
    Names.push([[Id],[layerName],[isLayerSet]]);
    return Names;
    function getLayersNb()//function to find out if the number of layers in the document
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID( 'Prpr' ), stringIDToTypeID('numberOfLayers') );
        ref.putEnumerated( charIDToTypeID( "Dcmn" ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
        var desc = executeActionGet(ref);
        var numberOfLayers = desc.getInteger(stringIDToTypeID('numberOfLayers'));
        return numberOfLayers;
    function toogleOpenCloseSet(){
      myALayerIDX = getActiveLayerIndex();
      myGroupP = app.activeDocument.activeLayer;
      if(!isLayerSet(myALayerIDX)){
          myGroupP = app.activeDocument.activeLayer.parent;
          if(myGroupP.typename != "Document"){
            if(isSetOpened1(myGroupP)){closeGroup(myGroupP)}else{openGroup1(myGroupP)};
      }else{
        if(isSetOpened1(myGroupP)){closeGroup(myGroupP)}else{openGroup1(myGroupP)};
    function getFristLayerSetChildVisible(){
      xx = false;
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('Cnt '));
      var parId = executeActionGet(ref).getInteger(stringIDToTypeID( 'layerID' ));
       var Names=[];
        var x = 0;
        var y = 0;
        var r = 0;
       currINDEX = getActiveLayerIndex();
        var i = currINDEX;
       for(i; i > 0 ; i--){
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
            var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
            var ls = desc.getEnumerationValue(stringIDToTypeID("layerSection"));
            ls = typeIDToStringID(ls);
            var vis = desc.getInteger(stringIDToTypeID( 'visible' ));
            // alert(layerName+": _ :"+vis);
    /*        if(desc.hasKey(stringIDToTypeID("visible")))
              alert(desc.getType(stringIDToTypeID("visible")));
            if(ls == "layerSectionStart"){x++};
            if(vis == 1 && Id!=parId && r!=0){
              var theOBj = {id:Id, lname:layerName, idx:i};
              xx =true;
              Names.push(theOBj);
              break;
            if(layerName.match(/^<\/Layer group/) )
              y ++;
              r = x - y;
              if(r == 0 && ls == "layerSectionEnd"){break};
              continue
        return Names;
    function getLastChildIdx(){
      xx = false;
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('Cnt '));
      var parId = executeActionGet(ref).getInteger(stringIDToTypeID( 'layerID' ));
       currINDEX = getActiveLayerIndex();
        var i = currINDEX;
        var x = 0;
        var y = 0;
        var r = 0;
        var lastChIdx = 0;
       for(i; i > 0 ; i--){
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
            var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
            var ls = desc.getEnumerationValue(stringIDToTypeID("layerSection"));
            ls = typeIDToStringID(ls);
            var vis = desc.getInteger(stringIDToTypeID( 'visible' ));
            if(ls == "layerSectionStart"){x++};
            if(layerName.match(/^<\/Layer group/) )
              y ++;
              r = x - y;
              if(r == 0 && ls == "layerSectionEnd")
                lastChIdx = i;
                break;
            // alert(x+" _ "+y+" _ "+r+" _ "+layerName);
        return lastChIdx;
    function getNbOfChilds(){
      xx = false;
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('Cnt '));
      var parId = executeActionGet(ref).getInteger(stringIDToTypeID( 'layerID' ));
       currINDEX = getActiveLayerIndex();
        var i = currINDEX;
        var nb = 0;
        var x = 0;
        var y = 0;
        var r = 0;
       for(i; i > 0 ; i--){
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
            var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
            var ls = desc.getEnumerationValue(stringIDToTypeID("layerSection"));
            ls = typeIDToStringID(ls);
            var vis = desc.getInteger(stringIDToTypeID( 'visible' ));
            if(ls == "layerSectionStart"){x++};
            if(layerName.match(/^<\/Layer group/) )
              y ++;
              r = x - y;
              if(r == 0 && ls == "layerSectionEnd")
                break
              continue
            nb++;
        return nb;
    function isSetOpened1( group ){
      app.activeDocument.activeLayer = group;
      xx = true;
      currSetIDX = getActiveLayerIndex();
      addTempLayerSetIn(currSetIDX-1);
      var fIdx = getActiveLayerIndex();
      makeActiveByIndex(currSetIDX+2, false);
      if(fIdx == getActiveLayerIndex())
        xx = false;
      deleteTempLayerSetbyIdx(currSetIDX+1);
      return xx;
    function addTempLayerSetIn(idxx){
        // =======================================================
        var idMk = charIDToTypeID( "Mk  " );
            var desc58 = new ActionDescriptor();
            var idnull = charIDToTypeID( "null" );
                var ref63 = new ActionReference();
                var idlayerSection = stringIDToTypeID( "layerSection" );
                ref63.putClass( idlayerSection );
            desc58.putReference( idnull, ref63 );
        executeAction( idMk, desc58, DialogModes.NO );
        // =======================================================rename
        var idsetd = charIDToTypeID( "setd" );
            var desc202 = new ActionDescriptor();
            var idnull = charIDToTypeID( "null" );
                var ref209 = new ActionReference();
                var idLyr = charIDToTypeID( "Lyr " );
                var idOrdn = charIDToTypeID( "Ordn" );
                var idTrgt = charIDToTypeID( "Trgt" );
                ref209.putEnumerated( idLyr, idOrdn, idTrgt );
            desc202.putReference( idnull, ref209 );
            var idT = charIDToTypeID( "T   " );
                var desc203 = new ActionDescriptor();
                var idNm = charIDToTypeID( "Nm  " );
                desc203.putString( idNm, "mb-dummy tempTestLayerSetOpen_Closed" );
            var idLyr = charIDToTypeID( "Lyr " );
            desc202.putObject( idT, idLyr, desc203 );
        executeAction( idsetd, desc202, DialogModes.NO );
        // =======================================================move
        var idmove = charIDToTypeID( "move" );
            var desc59 = new ActionDescriptor();
            var idnull = charIDToTypeID( "null" );
                var ref64 = new ActionReference();
                var idLyr = charIDToTypeID( "Lyr " );
                var idOrdn = charIDToTypeID( "Ordn" );
                var idTrgt = charIDToTypeID( "Trgt" );
                ref64.putEnumerated( idLyr, idOrdn, idTrgt );
            desc59.putReference( idnull, ref64 );
            var idT = charIDToTypeID( "T   " );
                var ref65 = new ActionReference();
                var idLyr = charIDToTypeID( "Lyr " );
                ref65.putIndex( idLyr, idxx );
            desc59.putReference( idT, ref65 );
            var idAdjs = charIDToTypeID( "Adjs" );
            desc59.putBoolean( idAdjs, false );
            var idVrsn = charIDToTypeID( "Vrsn" );
            desc59.putInteger( idVrsn, 5 );
        executeAction( idmove, desc59, DialogModes.NO );
    function deleteTempLayerSetbyIdx(idxx){
      // =======================================================
      var idDlt = charIDToTypeID( "Dlt " );
          var desc = new ActionDescriptor();
              var ref = new ActionReference();
              ref.putIndex(charIDToTypeID( 'Lyr ' ), idxx);
              // ref.putIdentifier(charIDToTypeID( 'Lyr ' ), idxx);
              desc.putReference( charIDToTypeID( 'null' ), ref );
      executeAction( idDlt, desc, DialogModes.NO );
    toogleOpenCloseSet();

  • Photoshop Actions: Problem with layer groups

    I have recorded several photoshop actions with multiple adjustment layers in layer groups. They work perfectly fine, as long as I do not run a second action with a layer group in it.
    As soon as I run a second action with layer groups, the layer order is completely random and messed up. How can I avoid this problem?

    Best practices: Usage
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • Problem with Script Alignment for new printer

    Hi All,
       I'm printing SAP checks to LOCAL printer. Currently we are using Dell W5300n to print checks and the printer has a lot of maintenance problems.  Therefore we purchase a new printer Dell 3110cn  and would like to have it set up to print checks.  We would still keep old printer ( Dell W5300n ) for back up.We changed the printer to new as there is some problem with old printer.
    Problem is , if we print a check from using old printer, the check alignment is good.  But if we print a check from  new printer, the check alignment is off.
    I'm using DINA4 Page format.
    Can you please tell me what is the problem here?
    Thanks,
    Subha

    Hi Subhashini Kuntala,
    For your issue there are few things to check ...
    1. We need to find exact Printer (new) drivers which matches exactly the (old)  Printer.
    2. Is your cheque is in A4 size or Customised size.
    3. If it is A4 try to print in Other Printer.
    If these senerio's does't work, as a ABAPer You can't do anything else .. So, best to pass this issue to BASIS.
    That could resolve your Problem.
    Regards,
    sg

  • Problems with Layer via Cut

    Application: Testing color combinations on an image of a building facade. Have tried to layer the image using the Polygonal Lasso Tool followed by Layer via Cut. Using Elements 6. PSE does not recognize my selections in the layers, most of the time, but will do it occaisionally. Have not been able to identify why it works some of the time. PSE seems to view some layers as blank, even though it displays the layered selection. I think this has to do with the use of Layer via Cut on adjacent selections and a selection border landing on or near the transparent background.
    I have two books on Elements, but no mention of this problem. Should I have used Layer via Copy? That would require more work because each selection that is moved to a layer, has to be eliminated in the Background Copy, in order to view new color schemes. Are there any work arounds for my unrecognized layers? Is there a better way to accomplish this re-coloring?
    I have reviewed Adobe's Knowledge Base and the Forum listings. Is there any way to do a selective search on the vast amount of Forum listings? I have scanned a large number but could have easily missed a TIP.
    Thanks!
    Don

    A sample image may not be as informative as the creation and extraction process. Please refer to the following steps and observations.
    Create a New Blank File. In the image select a rectangle and use the Paint Bucket to fill it with blue. Select a second rectangle or square in the image that is not in contact with the blue rectangle. Fill this with yellow paint. Make a copy of the background layer and work only with that. Activate the Polygonal Lasso. Select a portion of the blue rectangle (approx. half). Create a New Layer - Layer via Cut. Now should have three layers (Bknd, Bknd Copy less layer 1 and Layer 1). Enable only the Background Copy - disable the remaining layers. Try to use the Clone Stamp to change the yellow to blue. Error message is: Could not use Clone Stamp because target layer is hidden. If yes to Unhide, layer 1 is enabled but does not show as such until the stamp is used. Clone Stamp still cannot tranfer blue to yellow or vice versa. Disable Layer 1. Try to select some portion of the remaining blue rectangle with or without the selection border adjacent to the transparent area created by layer 1. Again, try to extract this using New Layer via Cut. Error message is: Could not make a new layer because No Pixels are Selected.
    Why cant I edit individual layers? Why cant I continue to extract portions of the blue rectangle?
    Don

  • Problems with type aligning in CS 6

    I work for a print shop. My colleague is having an issue that I am unable to duplicate on my computer. She has a customer supplied ID document. The customer is doing an effect with type where it is a spot color (a red) and then the same type is on top with a gradient applied. The client sets the type on top to multiply but when my colleague exports to pdf some of the type on the back side shifts slightly so as not to align properly. Here only fix is to set it to overprint which fixes the problem. However, when I do it on my computer (same OS, Mac 10.6.8) it works fine as multiply. When she does it in CC it works fine.
    Obviously, changing to overprint is a good solution but the client is supposed to be sending a lot more work done this way and it would be nice if we didn't always have to change it. I had her trash her preferences in ID. She has reloaded ID. Anybody else have any idea of what could be going on that is causing this?
    Thanks in advance.
    Rick

    Michael, thanks for your reply. I was just going to check the font versions she is using against the ones I am using and stopped because I think she figured it out. It looks like it was a corrupt pdf preset. She made a new one with pretty much the same settings and everything looks good.
    Not sure why that would happen but if someone has a theory I would like to hear it. And I had never had an issue with presets getting corrupt.
    Rick

  • Problem with layer nodes adding brightness

    Hi all,
    I've having an interesting problem: When I add a layer node of the same piece of video - copy and paste to a multilayer or over node for rotoscoping - and go to look at it in the viewer, the image looks extremely washed out. It's like Shake is trying to blend the two images, and combine the color values. The resulting composite looks awful.
    Has anyone had a problem similar to this? If so, how did you go about fixing it. I can't seem to find the preference files, and I couldn't find anything at apple's site.
    Any help would be much appreciated!

    I looked at the autoalpha and clicked it, but the image still is brightened...I
    I guess it might also help to explain a little of what I'm doing and how the problem is occuring. I'm creating a storm/tornado scene. My node tree has two copies of the background plate: one for a luma key for the sky removal and the other for the rotoscoped areas in the ground affected by the luma key(road, grass). The tornado and cloud cover are out of Lightwave and rendered with alpha channels.
    When I fileIn the clouds and start my multilayer node, everything works great; but when I add the second plate that has the rotoscoped ground, that's when the image doubles in brightness.
    It almost appears as though the multilayer node is multiplying the color values, rather than letting me create my composite. The same occurs using any of the Layer Nodes.
    I exported my background plate from FCP as an TIFF image sequence for use with Syntheyes. I had thought to export a quicktime file as my background plate to see if Shake just doesn't like the TIFFs from FCP.
    I appreciate the thoughts...maybe this info will help.

  • Problem with text alignment in the panelheader

    Hi,
    We are using <af:panelheader> in our jspx file. We are using custom CSS for alignments. The text we are displaying inside this panel header is top-aligned by default. But we want to align this text to middle. In our custom CSS file, we tried with different options to align this text to middle(ex: vertical-align:text-bottom;caption-side: bottom;...). Please guide me on this like which option to use.
    Our CSS code for panelheader is this:
    .AFHeaderLevelOne,.x1x,H1.af_panelHeader,H1.x20,H1.af_showDetailHeader,H1.x21,.af_messages_header,.x24,.p_OraProductBrandingCompactText,.x5b,.PortletHeaderText,.x6n,.PortletHeading1,.x6o,.PortletSubHeaderText,.x6u,.portlet-section-header,.x73,.portlet-section-subheader,.x77,.portlet-table-header,.x7a,.portlet-table-subheader,.x7e {caption-side: bottom;  background-color: rgb(233,233,209);vertical-align:text-bottom;white-space: nowrap; height:  37px; font-family:Tahoma;font-size:17px;color:#9c7200;margin-bottom:0px;margin-top:0px;font-weight:bold}
    and panelHeader code inside jspx is this:
    <afh:rowLayout id="rowLayout1" width="100%" >
    <afh:cellFormat columnSpan="4" height="37">
    <af:panelHeader text="Add Law Firm"/>
    </afh:cellFormat>
    </afh:rowLayout>
    Thanks & Regards,
    Yeshwanth.

    Hi,
    try
    .AFHeaderAlias{vertical-align:text-bottom; white-space: nowrap; height: 37px; font-family:Tahoma;font-size:17px;color:#9c7200;margin-bottom:0px;margin-top:0px;font-weight:bold}
    or
    h1.x20{vertical-align:text-bottom; white-space: nowrap; height: 37px; font-family:Tahoma;font-size:17px;color:#9c7200;margin-bottom:0px;margin-top:0px;font-weight:bold}
    both work
    Frank

  • Problem with layer ordering when using 3D rotation tool

    Hello, I really hoping that someone might have an answer for this. I am trying to rotate a bunch of movie clips around the X axis (I think its the X in a sort of wheel. Basically what I did is I create a 9-sided polygon, made it a movie clip and then added 9 movie clips 3D rotated perpendicular to each 'face' of the polygon. Then, I made the entire thing a movie clip and 3D rotated the movie clip so that the perpendicular faces are facing forward, and then using 3D rotation to cause it spin, like the wheel on the Price is Right or a rollsign. However when the movie clips that are in back are rotated around the front, the movie clips that were in the front reappear, though backwards. I am guessing this is because they are higher up in the layer order. Here are screenshots of what I am describing: The "Success" should be in the back with a different one in the front, but it is showing up front, though upside down and backwards as it should be in the back. I am using CS5, AS3 and working mainly on the timeline as my coding skills for animation are not that good. Any suggestions?

    If you're using the timeline to animate the rotation instead of code just add in some frame scripts at the appropriate time to swap children. The easiest thing to do is to set a childs index to the top of the stack.
    In a timeline script where you know, for example, image_5 is coming around and you want it to be in the front, you could do something like this:
    // move image_5 to the top of the display list
    carousel_mc.swapChildren(carousel_mc.image_5,carousel_mc.getChildAt(carousel_mc.numChildren - 1));
    Not trying to make it overly complex but where you put the code matters. If you put it inside your carousel itself (I'm loosely calling carousel_mc in my examples) then you'd replace "carousel_mc" with "this", e.g.:
    this.swapChildren(image_5,this.getChildAt(this.numChildren - 1));
    Sprinkle those on the timeline where you know any specific image is supposed to be front facing.
    If you're rotating the carousel via code then you'll just need to pay attention to the rotation property and at specific points run this same type of code to position the image stack correctly.

  • Problem with layer. Please help :D

    Im doing an animated gif with Photoshop, and whenever i put a new layer, it appears on all frames instead on just only one. I want it to appear only in the one i selected. I remember that i knew how to do it before, but after i stopped working with Photoshop from some months, i completely forgot how to do that. I hope you experts know answer to such an easy question =D

    Appearing in all frames is to be expected.  Normally you turn off the visibility icon on all frames but the one you want it to appear in.
    -Noel

  • Problem with Layer order

    I have a menu that is on a top layer that scrolls up to reveal a second menu on the next layer. When clicking a link or scrolling up, the behavior is correct in that the menu scrolls up revealing the menu below. However, when scrolling back down, the original menus comes back but UNDER the second menu. When you mouse over this menu, it then pops back to the top.
    This happens only in Safari on the Mac. It works in Chrome, and on Windows. Adobe support said it was related to the cookies and had me clear the cookies in Safari. This did not fix the problem.
    Any suggestions to fix this would be appreciated. This can be seen at here. Thanks.

    I believe you have resolved the issue on your end as I tested on Mac safari but was not able to replicate the issue.
    Thanks,
    Sanjit

  • Problems with the alignment in a tabular report

    Hello,
    I've a tabular report with number columns.
    I defined the number-format and set the column-alignment "Right"
    but the value is shown left.
    How can I change this?
    In a normal report the "standard report column" works fine!
    Thanks Ulrike

    The only solution that I can think of (and there may be others) is to add some javascript at the bottom of the page that loops through the fields and sets the alignment.
    Something like:
    &lt;script&gt;
    var rowcount;
    var i;
    if (document.forms[0].f01)
    rowcount = document.forms[0].f01.length;
    if (rowcount &gt; 0)
    for (i = 0; i &lt; rowcount; i++)
    document.forms[0].f01.style.textAlign = "right";
    else
    if (document.forms[0].f01)
    document.forms[0].f01.style.textAlign = "right";
    &lt;/script&gt;
    Replace "f01" with the appropriate field number for your column (if you are not sure, run the report, right-click, View Source and look for an instance of the field - you want the "name" attribute).
    Andy

  • Problems with widget alignment on mobile site

    I'm trying to get my mobile site up and running. I'm using a sliding menu by inserting a vertical menu box into an accordian widget.  The problem is, there's always this gap on the right side for some reason when I go to preview it.  I've made sure there's no strokes on anything, and I just can't seem to figure out what's causing this gap.  I think it's some kind of bug.  I tried compensating by shifting the menu over, and it seemed to be working in the preview mode in Muse.  When i uploaded everything, everything looked fine until i noticed that when I click the menu bar thereby opening the accordian box, there's a gap on the right side again, only this time the header boxes are gapping too.  This is really frustrating.  Has anyone had this problem?  Any suggestions?

    Hi
    Few things to try :
    - Check the content area alignment
    - Try to modify X location of content area so that it positions centrally.
    Thanks,
    Sanjit

  • Problem with layer masks ... help

    Ok. I have my original image. I've added a layer to make it black and white. Then added a layer mask to that because I want to make a section of it color. I'm using the brush tool to do so but having no luck. Yes I am on the correct layer and correct mask. I've done this several times before, but for some reason, today its not working. help

    Good day!
    Could you please post a screenshot with the pertinent Panels visible?
    What are Foreground- and Background Color?
    What are the Tool’s Blend Mode, Opacity and Flow?
    Is a Selection active?
    Regards,
    Pfaffenbichler

Maybe you are looking for

  • How to create HTML with tree stucture representation of xml

    hi....in my application i have a xml and xslt ..i have to generate one html that will display the xml which will have 2 display area one is for navigator and one view area there will be a navigator which is display all the nodes with its hierrerchy a

  • Adding loops for ALL accounts...

    I was wondering how I can add some garageband loops such that all my imac account users can access the new ones. To my knowledge on my laptop, all I do is open up garageband, and drag and drop the new loops onto the loop browser. My only concern/ques

  • File Not Compatible Error - CS4

    I cannot open a PSD file I was working on the day before. I get 'Could not complete your request because the file is not compatible with this version of Photoshop' I created this file using CS4 and was opening yesterday fine. This has never happened

  • Change the name from Portal Favorites to Portal Favourites

    Hi, There is a requirement that where ever in Portal, the name of Portal Favorites should be changed to Portal Favourites. So when I add something to Portal Favorites in Portal, then there we get Organize Entries in the context menu and opening this

  • 'Availability.h' file not found

    Xcode 4.4 Upon constrir a project, sends me the following error, "'Availability.h' file not found", please can you help me solve it,