Is there a method or function to list all the properties

I'm looking for a method that's similar to Python's dir(x) which lists all the properties of an object. I'm looking to use this on After Effects Objects.

You can use a for...in loop: for (var key in myObj) if (myObj.hasOwnProperty(key)){ ...}
But in ExtendScript there are also Reflection and ReflectionInfo objects. Those are not documented in the After Effects Scripting Guide but in the JavaScript Tools Guide (common to all Adobe scriptable apps).
For any ExtendScript object o you can query its reflection object. o.reflect is an object with properties and methods:
"properties" : an array listing all properties in o. Each entry is a ReflectionInfo object.
"methods" : an array listing all methods in o. Each entry is a ReflectionInfo object.
"name" : the class name of the object
"help" and "description" : some strings supposed to give some hint about the objects but those fields are invariably empty...
"find" : a method to find a specific property or method by its name
For what a ReflectionInfo looks like, see the JavaScript Tools Guide. (The main properties are "name", "dataType", "type")
For instance, if o is a layer position property:
o.reflect.methods = array of ReflectionInfo corresponding to all "ADBE Position" methods
o.reflect.find("setValue") => ReflectionInfo corresponding to the method "setValue"
o.reflect.find("setValue").name : "setValue"
o.reflect.find("setValue").arguments.length : 0     // SHOULD BE 1 ... arguments are not filled in :-(
Xavier.

Similar Messages

  • How to list all the notes

    HI,
    Is there some way to report o list all the notes for all account or contacts?
    thanks

    We have similar requirements and we used integration to pull all the notes and then create reports for them from outide of CRMOD.
    Good Luck,
    Thom

  • Is there any method or function to update/modify an existing trip data?

    Hey, ABAP  gurus,
    Is there any method or function to update/modify an existing trip (PR05) receipts data and cost distribution data?
    Thanks in advance!
    Fisher

    Hi Fisher,
    Please try HRTRV_IF_MODIFY_TRIP.
    Regards,
    Dilek

  • Is there a way of listing all the current keyboard shortcuts?

    Within a program is there a way of listing all the current keyboard shortcuts , in a sensible order?
    I mean in shortcut order,  giving the name of the menu option (or other function) alongside.
    I often want this when I"m about to define my own keyboard shortcut, to see what's already taken.

    dominic23 wrote:
    https://discussions.apple.com/message/21487716#21487716
    Hope this helps.
    Not sure it does help. In http://support.apple.com/kb/PH10837 it says
    If you assign a keyboard shortcut that already exists for another command or another app, your new shortcut won’t work. Find the menu command that’s using it and reassign the keyboard shortcut for that item.
    I looking for a quick way to "find the menu command" - or even better, to avoid choosing one that's already being used.

  • Can we list all the users or groups with there rights on the universe\s

    Can we list all the users or groups with there rights on the universe\s using query builder.
    Can we do the same by using auditor reports.
    PLZ  help

    Thanks ,
    It can be acihived by using secuirty viewer.
    Thanks again

  • Is there anywhere I can get a list of the various ...

    Is there anywhere I can get a list of the various icons used on the display of my Nokia 1661

    @mm3321:
    This might help http://support.t-mobile.com/doc/tm53098.xml?related=y&Referring%20Related%20DocID%20List%20Index=4&n...
    Previous Phones: 6600, 7610, 6230, 6230i, 1100, 1112, N70, N73, N95, N95 8GB, 5800XM, 5230, C5, iPhone 3GS, SE Xperia X10, N900, N8, SE Xperia Arc
    Current Phones: Nokia N9, iPhone 4

  • Is there any way to delete a listing on the Notifications sidebar without deleting a Calendar listing

    Is there any way to delete a listing on the Notifications sidebar without deleting a related Calendar listing?

    Again Mende1, many thanks. You solved my question and also taught me more about how Notifications works. Very good!

  • 1) Is there a function to make all the object to the same size?

    1) Is there a function to make all the object to the same size?
    Solved!
    Go to Solution.

    Sorry, I thought you wanted to align the objects.
    We don't have the function to make objects to same size. You have to edit them one by one. To edit the .lks file can be more efficient.
    Ryan Shi
    National Instruments

  • HT204406 I purchased an album from itunes, and put it in a playlist. icloud status lists all the songs as purchased, and when I click on "Update itunes Match", this playlist will not update. There is a cloud to the right of the playlist name.

    I purchased an album from the itunes store, and put it in a playlist. icloud status listed all the songs as purchased, instead of the usual "Waiting". When I clicked on "Update itunes Match", everything updated except this playlist. There is a cloud to the right of the playlist name. This has never happened before.
    Any ideas?

    I deleted the songs from my desktop (iMac), then I used itunes match to reload the songs back on my desktop from my laptop. When they reappeared on my desktop, then I right-clicked on the songs and clicked on the option to add to icloud. This however did not work, and they just duplicated into icloud, but they were "greyed out" and unuseable. I hope I'm explaining myself clearly? In other words, the songs seem to be trying to go into the cloud, but they are greyed out in my library and cannot download. It is as if they are ghosts? My songs do play fine when I transfer them via itunes match, and everything appears normal. They just won't transfer via the cloud. As I said before, every other song in my library always work fine via the could, but only the songs off this one album that I bought from itunes in 07' will not work???

  • How to list all the files in a FTP site?

    I am now using LV7.1 and trying to list all the files (with file name, file size and modified date) on both a local drive and a remote FTP site. I can manage to do on a local drive, but is it possible to list the files on a FTP site?
    Thanks,
    Cola

    Listing files on a local drive and listing the contents of an ftp site are two different things. Access to an ftp site uses a totally different protocol. Off the top of my head, you have a few options:
    Use a third-party tool that can map an ftp drive to a local drive letter. WebDrive is one such client. Note: I'm assuming Windows here.
    Use the Intenet Toolkit.
    Use the LabVIEW TCP/IP functions to write up your own ftp client to connect to the server, change to the desired directory, and send the command to list the contents, which you can parse and spit out as a nice little array of filenames. Check the LabVIEW examples, as I believe there's some examples on this. You should also search this board for "ftp client", as this has been brought up before, and samples have been posted.

  • When i go to the app store to update the one app that needs to be updated, the screen is blank.  It used to list all the apps that need updating and have a button called update all.  Now nothing.  Just a blank screen.

    when i go to the app store to update the one app that needs to be updated, the screen is blank.  It used to list all the apps that need updating and have a button called update all.  Now nothing.  Just a blank screen.  How can I fix this?

    There's been a problem with this all day.  Seems to be a server problem  -  wait a day and try again, or use itunes on the computer to update, that works.

  • How to list all the datatypes are being used in the database?

    Is there any way you can list all the oracle datatypes are being used in the database?
    Thanks,
    Chau

    Use USER_TAB_COLUMNS or DBA_TAB_COLUMNS to determing various data type but USER_TAB_COLUMNS will show you what type being used by a schema user

  • Using ms project 2007 and vba macro to list all the custom fields used in the project?

    Hi,Using ms project 2007 vba macro, I would like to be able to list all the custom fields used in the project and their corresponding field names. e.g. let us say I create a calculated duration field and name it "expected duration" and the name
    of the field I select is Duration1.
    I am trying to write a macro that will list all the used custom fields such as the result would look like:
    Duration1 ---> "expected duration"
    Text1       ---> "anything"
    Flag1        ---> "....."
    Number1  ---> "..............."
    Can anyone provide me with the solution?
    Regards,
    Chuck

    John,
    I found this module, which provides the the list of custom fields used in the project but does not provide the name given to the field. Here below is the module and hope you could help me achieve this by modifying the macro to list the renamed field.
    ' MSP Checks all Custom Task Fields
    Sub checkfields2()
    'This macro will check and report out which custom task fields are used
    'It requires Project 2002 and above as it relies on the GetField
    'and FieldNameToFieldConstant methods which were not introduced until
    '2002.
    'It does not include resource fields, however it is a simple matter to
    'do it by replacing the pjTask constant with pjResource.
    'Copyright Jack Dahlgren, Oct. 2004
    Dim mycheck As Boolean
    Dim myType, usedfields As String
    Dim t As Task
    Dim ts As Tasks
    Dim i, it As Integer
    Set ts = ActiveProject.Tasks
    usedfields = "Custom Fields used in this file" & vbCrLf
    myType = "Text"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 30
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> "" Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Number"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 20
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> 0 Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Duration"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 10
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If Left(ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)), 2) <> "0 " Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Cost"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 10
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> 0 Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Start"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 10
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> "NA" Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Finish"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 10
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> "NA" Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    MsgBox usedfields
    End Sub
    This is what the module gives me. But I would like to have beside Text 1 the name that is shown as below. e.g Text1 is "Test".
    Would you mind helping me achieve this?
    Thanks in advance.
    Chuck

  • How can I list all the column names of a table by programming?

    Hi,
    Now I want to write an function which has the following features:
    Firstly, The function was given a parameter as table name.
    Then, it will lists all the columns names of the table.
    e.g
    table: person
    ---firstName------lastName----+
           Michale               Jackson
    We can get the columns 'firstname' and 'lastName' by calling the function with table name 'person'.
    And I also wonder that where I can get reference book or any other materials?
    Thanks.
    Edited by: wenjing wang on Feb 15, 2008 6:42 AM
    Edited by: wenjing wang on Feb 15, 2008 6:57 AM

    hi,
    hope the below code helps u. Just take the headee which contains the field name and split it like below and compare it with the field name u want here 'last name'.
    here,
    'First name' will be in wt_filedata1 and remaining field names in wt_filedata2, so 'do' continues.
    c_tab must be the separator, either , or + or tab etc..
    CODE:
    read table person into wl_header index 1.
    do.
        split wl_header at c_tab into: wt_filedata1 wt_filedata2.
        if wt_filedata1 <> 'lastname'.
          cnt1 = cnt1 + 1.
          wl_header = wt_filedata2.
        else.
          exit.
        endif.
      enddo.
    Please reward if it is useful.
    regards,
    sri

  • Function to get all the months name of a year from dual

    HI GURUS
    Is there any function to get all the months name of a year from dual
    thanks in advance

    What about this --
    satyaki>
    satyaki>select months_name
      2  from (
      3         select to_char(add_months(trunc(sysdate,'YEAR'),rownum-1),'MONTH') months_name
      4         from dual
      5         connect by rownum<=12
      6       );
    MONTHS_NAME
    JANUARY
    FEBRUARY
    MARCH
    APRIL
    MAY
    JUNE
    JULY
    AUGUST
    SEPTEMBER
    OCTOBER
    NOVEMBER
    MONTHS_NAME
    DECEMBER
    12 rows selected.
    satyaki>Regards.
    Satyaki De.

Maybe you are looking for

  • GDS with an ABAP program

    Hi All, I have a GDS which is created using table and data (daily delta)  in table is coming through an abap program. But I am not getting how this program will execute automatically until and unless we dont execute it. Is there any procedure to call

  • How to changed the download  options?

    When I tried to download from internet or files they send me it automatically opens with itunes. How can I change this?

  • Error during Production Order Confirmation

    I get a real wierd error during production Order confirmation.  The error message is "Additional items are not allowed Message no. ZOAL010" Can anyone throw some light on this? Regards Raj

  • Iphone 4 and new music

    I have an iPhone 4. A lot of the new music I recently purchased that fades in and out in volume. I have push turned off. Notifications off. All apps off. music fades, brand new earbuds, apple earbuds, plugged all the way in. Hard restart. What else. 

  • CPU usage 99% when painting ScrollPane

    I have a scollpane with specified view by setViewportView. When change the dimension of the view and the size is less than the dimension of viewport of the scrollpane, the cpu usage of javaw.exe is up to 99% and other components are painted slowly. T