Name attribute now showing in layer

Hi,
I am very new to After Effects scripting, but have been programming in C++ for about 25 years, so I have a programming background.  I am creating a camera rig script.  In the script I create a null and want to name it "Camera Control".  I am using this code snippet to create the null:
var myNull = ThisComp.layers.addNull();
myNull.threeDLayer = true;
myNull.position.setValue([w,h,0]);
myNull.name="Camera Control";
After running the script, the camera control null is created, and it works exactly like I want it to.  The problem is that the null's name ("Camera Control") works sometimes, and other times the name is just "Null #" (where # = some number).  When this happens everything still works as designed, but the layer name is wrong.
Am I missing something?

I suppose you just type the "myNull.transform.position.setValue([w,h,0])". Just try this to set the name:
try {myNull.name="Camera Control";}catch(err){alert(err);}    //this can display errors if there are.
If nothing happens,it means that you set the name successfully.The reason why you see the "Null #" might be that you did not see the "Source Name".Just click it ,and it changes into "Layer Name",which is what you want.
Ps.25-year program experience in C++ is So amazing.

Similar Messages

  • My Iphone 5 updated to IOS 6.2 and now my contact names do not show on incomming calls or text messages. All i can see is the number of the person calling. how can i fix this?? please help

    I updated my iphone software to IOS 6.2 yesterday and im not sure if it is a coincidence but now, my contact names do not show on incomming calls or messages. Also they do not show on past calls or recent history.
    All my contacts in my phonebook still exist and are correct, the problem only occurs when receiving calls or messages. please help i need this fixing
    Regards,
    Frosty

    Try to restore your iphone via iTunes or update to ios6.1.2.
    If itunes gives an error with restoring (DFU/Recovery or just normal)
    try this:
    open your computer and search on windows; C://windows/system32/drivers/etc/hosts
    open up the hosts file in note pad you will see IP adresses and more add another line and put in this:
    #74.208.10.249 gs.apple.com
    this is a by-pass to the cydia/saurik restore server, it has nothing to do with jailbreaking over voiding apple's warranty
    let me know if succeeded!

  • TS2755 why is Messages now showing phone numbers instead of contact names.  any ideas?

    why is Messages now showing phone numbers instead of contact names.  any ideas?

    Check to see if you have contacts in your Contacts app. This is something that can happen sometimes, and is usually cured by resetting the phone. Hold the sleep/wake and home buttons together until you see the Apple logo and then release. The phone will reboot. No data will be lost.

  • Before ios8, facetime calls from my kids' ipods showed their names. Now when they call, it shows my name like I'm calling myself

    Before ios8, facetime calls from my kids' ipods showed their names. Now when they call, it shows my name like I'm calling myself. Previously I had an issue where my texts were showing up on my family's ipods and ipads. That has been corrected...I'm wondering if this is similar.

    bump for the morning crew?

  • 0vendor is not displaying name attribute when I maintained master data.

    0vendor is not displaying name attribute when I maintained master data.
    Details: I have four records in the 0vendor infoobject (sand box). I have to show these four records to the client. As i have free hands I maintained master data in the name field and finally activated master data. But when I add the name attribute to the vendor charecteristic in the query designer; it is displaying name attribute as # . Any idea how to display the names of the four vendors in the zquery.
    Also do you know the transaction to copy standard query to Zquery?
    Thanks in advance.

    Dear Les
    For 0VENDOR, Set Property as Key & Text, try once again.
    Yes, you can copy the standard query very well.
    Open the Standard query & using SAVE AS, you can copy to "Z" queries.
    Hope, now you will get some idea
    Regards
    Saravanan.ar

  • Artist names do not show up on my idpod

    When I sync my itunes to my ipod, some of the artist names do not show up in the Menu for artists. The music is on there, but the listing does not show.

    There are usually two things that contribute to songs not appearing under Artist on the iPod, both due to information either in or missing from the Get Info>Info tab against the song in iTunes. 1) the song is incorrectly marked as part of a compilation (and you have Compilations enabled on the iPod) or 2) the song has no album name associated with it.
    if the tracks are ticked in the Get Info>Info tab as part of a compilation (as described in the link above), they will not appear under Artist on the iPod. Highlight a song in iTunes that you know is not appearing correctly on your iPod. Right click on it and choose Get Info and click the Info tab (alternatively choose Get Info from the File menu), if "Part of a Compilation" is marked untick it and afterwards update your iPod, you should find it now appears as normal. If you are using iTunes 8, in the the multiple items info box the compilations setting is in the "Options" tab. Setting "Compilations" on your iPod main menu prevents you getting lots of single artist entries when you load an album by various artists.
    Also if the tracks are missing an Album name in the Info tab, this information needs to be filled in. The no album one is a bit quirky as the songs will appear under certain circumstances (for instance I read somewhere that if you have at least two tracks with different album names the rest will appear), however the simplest remedy is just add None or Miscellaneous to all the blanks in place of a title. See this link for more detail: I don't see some of my songs when browsing by artist on my iPod

  • Bug? - Submitting page with html name attribute in content

    Hello,
    I use a modified version of Task Manager to track tasks in my group at work. I wanted a "non-standard" report to show the users the history of their task at the bottom of a page. Basically I created a PL/SQL function that returns preformatted HTML as I would like it to be displayed in a row of the report. The end result is great - a highly customized report layout with little effort.
    The problem is that recently a user copied and pasted some HTML from another web application into the body of a task and saved it. The next time the task was opened my report at the bottom displayed what they had entered previously. However, this time when the user clicked save and submitted the page, he got a page can not be displayed error. After a little digging, I found that the HTML the user had pasted previously contained an HTML element that had a name attribute. When I removed the name attribute, the page submitted fine which leads me to believe that the ApEx engine tried to bind the value of that item with an application item and it choked when no match was found - similar to the way it chokes if you submit a valid item that contains more than 32767 bytes of information.
    The fix for my situation is simple. I'll use regular expressions to find these name attributes when saving the page and strip them out. I only bring it up because it could possibly effect other users that might not be able to figure out what the problem is.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

    Dan,
    Part of the data stream being emitted to the page is:
    < input type="hidden" name="_ctl0:_ctl34:_ctl0:dgCriteria" value="_ctl0:_ctl34:_ctl0:dgCriteria" ...
    Since your report does not escape the data, it gets interpreted by the browser as HTML -- a form input item in this case. And yes, modplsql complains because that name cannot be bound to a PL/SQL input parameter in the form-handling procedure.
    The correct way to handle this generic problem (second-order cross-site scripting) is to always escape output to the browser unless you control the content from origin to the time it is emitted.
    Scott

  • I want to remove a saved login user name which always shows in my ist of usernames

    I inadvertanly typed my password at the end of a user login name and now this always shows in the list of usernames when I type the first characters of the username. Which is used constantly.

    See:
    * http://kb.mozillazine.org/Deleting_autocomplete_entries
    Remove saved Password(s):
    * Tools > Options > Security: Passwords: "Saved Passwords" > "Show Passwords"
    * https://support.mozilla.com/kb/Remembering+passwords

  • Yahoo is my home page and News, Sports, Business links now shows a few sentences after each main URL link. How do I put it back to show just the URL links?

    Yahoo is my home page and News, Sports, Business categories/links changed and now shows a few sentences after each main URL link/topic. How do I put it back to show just the URL links/topics without having to scroll down and down the page. All the extra sentences after the links causes too much scrolling to view the topics.

    Those steps did not solve my problem. Here is an example of what I see although it's not exact copy/paste. All I want to see are the links but I get all the verbiage after the links
    Firefox 17.0.1 version
    ''' '''Ask Stacy: How Can I Rebuild My Credit?''''''
    Here’s a question familiar to millions of Americans… Stacy, My wife and I recently filed for bankruptcy due to high medical bills we were unable to pay. We purposefully didn’t add our Wells Fargo credit ...
    Money Talks News
    '''Analysis: High stakes for Cuba in Chavez's cancer battle'''
    HAVANA (Reuters) - As Venezuelan President Hugo Chavez recovers in Havana from his fourth cancer operation, Cubans face renewed worries about their economic future if the country's top ally dies or has to step down from office. Cuba has staked its economic well-being on the success - and generosity…
    41 mins agoReuters
    [$$] Playing FICC or Treat With Bank Investors
    '''Playing FICC or Treat With Bank Investors'''
    The Wall Street Journal
    AdChoices
    '''Cybergeddon
    A digital crime thriller from Anthony E. Zuicker, the creator of CSI. Only on Yahoo!
    And here is what Internet Explore shows: All LINKS below
    '''Molten gold signals mining's return to Calif.'s Mother Lode'''
    '''Century-old fight for Budweiser name hits new snag'''
    '''NRA goes silent after Connecticut school shooting'''
    '''.Authorities: Kansas man who killed 2 cops dies'''

  • Show/hide layer bug PS 12.01.x64?

    I know that you OPT-Cllick on the eyeball to show or hide multiple layers in PS on the Mac. I could hide all by OPT-clicking on one eyeball. But OPT-Clicking it again did not show all the hidden layers again. It did nothing. Even after several reboots.I had to manually turn on all the layers.
    But then I CONTROL-Clicked on the eyeball to bring up the context menu, which said "Show/Hide all layers" and somehow that woke up the show/hide function when OPT-Clicking on an eyeball. So now everything works normally. The FNCT-Click (or right mouse button) on the eyeball has become a switch to turn on the OPT-Click behavior.
    Anyone else notice this?
    Thanks
    Stan
    MacBookPro6,2 Intel Core i7o OS 10.6.4

    The second Option+Eyeball click is a not a "show hidden layers" command, it goes to the previous state of visible layers... so if you opt+eyeball+click to just see one layer, then for whatever reason make another layer visible, or hide that layer and make another visible, or if you manually hid all but one layer, then that second opt+eyeball+click will appear not to work (if your expectation is to have all the layers become visible)
    Kind of a convoluted answer there!  But try that out and see if that is what you are experiencing.
    I think at one point, quite a few versions ago, the opt+eyeball+click was a "show this layer/show all hidden layers" command. But Adobe changed the behavior because the second opt+click would make every layer visible, including the layers you had intentionally hidden.

  • What's the use for "name" attribute?

    Almost every object has a "name" attribute and "display name" attribute, e.g. page, tab, template.
    What is the exact use of the name attribute. For my understanding, one of its use to is contruct a URL for the object. For example, when I want to add one item to a page, the shows me the path to the page is:
    PAGE / HELLO_PAGE_GROUP / HELLO_PAGE / TAB37465 / TAB37469 /
    TAB37465 is the name of the tab attribute. I realized this and went to change the name of the tab to a more meaningful value. However, when I try to add the item, the page Path did not change. Is this a oracle internal bug?
    I have similar problem with navigation page. I published a navigation page as portlet. I changed the name of the navigation page and use the name as the portlet name, the new name of the portlet can not be reflected in the portlet repository.

    Jerry,
    1. I tried to add an item to the page within the tab. On the "add item" page, it shows me the path to the current page. Ok, Let's forget about "item", and just talk about the path to a tabbed page. The path/URL never changes, even after I change the tab "name" attribute.
    2. I am talking about the name of the portlet within portlet repository. Let's see within page group A, I created navigation page with name of "test". I published the page as a portlet. In the portlet repository, I can see a new portlet "test" under "new/A". I changed navigation page name from "test" to be "B", however, the portlet name never changed in the portlet repository. It's always "test".

  • ComplexType name attribute problem

    Hi! All
    I'm trying to make a schema of a WSDL file.Given below are the port types(interfaces exposed by a web service)definition of the services and the parterner link type definition.
    This is the port type definitions
    <!-- port type definitions -->
    <portType name="loanServicePT">
    <operation name="request">
    <input message="lns:creditInformationMessage"/>
    <output message="lns:approvalMessage"/>
    <fault name="unableToHandleRequest"
    message="lns:errorMessage"/>
    </operation>
    </portType>
    <portType name="riskAssessmentPT">
    <operation name="check">
    <input message="lns:creditInformationMessage"/>
    <output message="lns:riskAssessmentMessage"/>
    <fault name="loanProcessFault"
    message="lns:errorMessage"/>
    </operation>
    </portType>
    <portType name="loanApprovalPT">
    <operation name="approve">
    <input message="lns:creditInformationMessage"/>
    <output message="lns:approvalMessage"/>
    <fault name="loanProcessFault"
    message="lns:errorMessage"/>
    </operation>
    </portType>
    This is the partner link definitions
    <!--partner link type definitions -->
    <plnk:partnerLinkType name="loanPartnerLinkType">
    <plnk:role name="loanService">
    <plnk:portType name="lns:loanServicePT"/>
    </plnk:role>
    </plnk:partnerLinkType>
    <plnk:partnerLinkType name="loanApprovalLinkType">
    <plnk:role name="approver">
    <plnk:portType name="lns:loanApprovalPT"/>
    </plnk:role>
    </plnk:partnerLinkType>
    <plnk:partnerLinkType name="riskAssessmentLinkType">
    <plnk:role name="assessor">
    <plnk:portType name="lns:riskAssessmentPT"/>
    </plnk:role>
    </plnk:partnerLinkType>
    when a schema is generated the partner link type definitions is changed into a complexType
    <xs:cmplexType name="plnk:partnerLinkType">
    Now the error is that the name attribute takes in "NCName" type value and the value which is given to it while generating a schema is of "Qname" type.
    can any one please tell me how to change/what modifications are needed in the schema to correct it.
    (Or in other words how do we change a "QName" value to a "NCName")
    Please help is needed urgently.Any input will be highly appreciated.
    Many Regards
    Ved

    Set the namespace in the Schema instaed of the partner link type definition.
    Generate schema without the plnk prefix. Set namespace in Schema.

  • Restritions on id and name attributes?

    Are there any known restrictions in respect to what ascii characters are valid for object id and name attribute?
    I created (via xml file) a ObjectGroup (aka Organization) with id='#ID#ObjectGroup:Approve_org' name='Approve_org' displayName='Approve_org'
    The Organiozation did not open and did not show the contained users.
    With this id and name it worked fine.
    id='#ID#ObjectGroup:ApproveOrg' name='ApproveOrg' displayName='Approve_org'
    Any thoughts?
    Ugato

    From my experience, the name and id attribute may contain pretty much every character - at least I have yet to find anything that isn't accepted. I even tried your example "Approve_org" and it worked (in IDM 8.1).
    This is what I uploaded:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE ObjectGroup PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <!--  MemberObjectGroups="#ID#Top" displayName="Approve_Org" name="Approve_Org"-->
    <ObjectGroup
          id='#ID#ObjectGroup#Approve_Org'
          name='Approve_Org'
          displayName='Approve_Org'
          creator='Configurator'
          primaryObjectClass='ObjectGroup'>
      <PathFromTop>
        <List>
          <String>#ID#Top</String>
          <String>#ID#ObjectGroup#Approve_Org</String>
        </List>
      </PathFromTop>
      <MemberObjectGroups>
        <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
      </MemberObjectGroups>
    </ObjectGroup>Maybe you had something else wrong?

  • Searching by artist name does not show songs with artists name in song title

    If i search by an artist's name in itunes, it does not display songs by a different artist that have the artist's name in the song title, such as remixes that have a parenthesis, then the searched artist's name after with no space in between, like it used to.  For example,  I searched "Munchi" (artist name), and it showed songs listing munchi as the artist, but not songs with munchi in the title.  In the old itunes, if I searched "munchi", the list of songs would include the song Chicken Lover (Munchi likes 'em fried moombahton remix), which is a song by the artist "bassanova",  but now that song and songs like that (remixes) in which the artist im searching has their name in the song title but not as the song artist, are not included.  This is a serious problem for me as it leaves out alot of songs which the searched artist has collaborated on out.  In the old itunes i would get a list of any song which had the word "munchi" in any field, whether or not the word munchi had any letters or symbols before or after it.

    this will answer your question:
    https://discussions.apple.com/thread/4577261?start=0&tstart=0

  • CS4 Actions change "Show Current Layer, Toggle With Others" MIA

    Greetings forumers,
    I have been using Photoshop for years as a hobby and professionally. My employer recently upgraded our Mac Pro Quad-Core Intel Xeon computers to Photoshop CS4. The transition has been mostly painless accept for all the changes to the keyboard shortcuts (I'll live).
    Recently we have come across an issue with one of our customer's workflows that we have not been able to get by using CS4. Or customer has a workflow that we must work within in order to provide them with the artwork files in a way they can use for other processes. The main parts of this workflow involve layer structure and a set of actions that they have been using since Photoshop 7. Our customer uses Photoshop CS3.
    With the transition to Photoshop CS4 in our shop, one line of their action does not function in CS4.
    Show Current Layer
    Toggle With Others
    What needs to happen is at the end of the action all layers need to be turned visible. In CS3, in the layer palette, by Control & Clicking the eye and selecting "Show/Hide all other layers" produced the recorded action 'Show Current Layer, Toggle With Others'. The names of the layers are not recorded. This is good because the action will work on any layer no matter what the name of the layer is. In essence all layers are made visible.
    In CS4 performing the same above clicks produces a recorded action 'Show , ...' The diference is that in CS4 the action is recording the name of every layer that it is showing/hiding. Simply change the name of one of your layers and running the action again produces a verbose error box.
    So any thoughts on how to make visible all layers in a document using an action that will work on any layered file?
    We are constructing our files in CS4 and opening them in CS3 to run the action for our customer as a work around. Or we are manually toggling the visibility, but what fun is that when it used to be automatable?
    Any help would be greatly appreciated.

    You could try this script (CS4 only) to make all layers/groups visible. If it works for you, you could then call it as part of your action.
    selectAllLayers();
    var sl = getSelectedLayersIdx();
    var sLayers = new Array();
    for( var i = 0; i < sl.length; i++ ){
       makeActiveByIndex( [ sl[ i ] ], false );
       sLayers.push( activeDocument.activeLayer.name );
    ShowAllLayers(sLayers);
    function ShowAllLayers(layerNames) {
        var desc = new ActionDescriptor();
            var list = new ActionList();
                var ref = new ActionReference();
       for(var a in layerNames){
                ref.putName( charIDToTypeID('Lyr '), layerNames[a] );
       $.writeln(layerNames[a] );
            list.putReference( ref );
        desc.putList( charIDToTypeID('null'), list );
        executeAction( charIDToTypeID('Shw '), desc, DialogModes.NO );
    function selectAllLayers(){ 
       var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putEnumerated( charIDToTypeID( "Lyr " ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
        desc.putReference( charIDToTypeID( "null" ), ref );
    executeAction( stringIDToTypeID( "selectAllLayers" ), desc, DialogModes.NO );
       function getSelectedLayersIdx(){
          var selectedLayers = new Array;
          var ref = new ActionReference();
          ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
          var desc = executeActionGet(ref);
          if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
             desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
              var c = desc.count
              var selectedLayers = new Array();
              for(var i=0;i<c;i++){
                try{
                   activeDocument.backgroundLayer;
                   selectedLayers.push(  desc.getReference( i ).getIndex() );
                }catch(e){
                   selectedLayers.push(  desc.getReference( i ).getIndex()+1 );
           }else{
             var ref = new ActionReference();
             ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "ItmI" ));
             ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
             try{
                activeDocument.backgroundLayer;
                selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ))-1);
             }catch(e){
                selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" )));
          return selectedLayers;
    function makeActiveByIndex( idx, visible ){
       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 );

Maybe you are looking for

  • Batch Job not Generating Spool No

    Hi Experts, We had a custom program where we are printing multiple invoice in a single go i.e all invoices for a particular sales office are printed in a single spool request. for foreground execution it is running fine. But after creating variant of

  • I see other computers on my network. I just cannot connect to one of them.

    Apologies if this has been covered. my 2009 Macbook pro can see all of the other 3 computers on the home network. It can also see the time capsule. However, It can only connect to the time capsule and 2 of the other computers. The same is true for a

  • Start up issues on MacBook Pro from 2008

    My mac book on wich my life depends, got "sick" and can't start up. two weeks ago I tried to install an external HD to have a back up copy of my stuff, everything looked fine until I restarted it, it restarted really slowly and when it tried to sign

  • Problem while opening excel files in office 365

    Hi, Facing issue in office 365. Suppose one excel file is already opened and if we tried to open another one it just is looks like opening file and if check after sometime it shows excel blank window to open new file. Please help

  • JSF 1.2 and EL artifacts in Maven 2 Repository

    It would be really, REALLY nice if someone would deploy the latest JSF 1.2 API, IMPL and EL artifacts into the maven 2 repository located here: The JSF API and IMPL artifacts are already loaded here: http://download.java.net/maven/1/javax.faces/poms/