Search found 98 matches
- October 2nd, 2007, 5:59 am
- Forum: Scripts Discussion
- Topic: undefined is not an object in E4X xml parsing
- Replies: 7
- Views: 13997
ok, one more followup. Like I was saying there will always be a filter, and typically I use a for(child in filters) to iterate the children of the xmlList. In this case though some instances of filters[child] are undefined. If I explore the instances of filters it definitely has children when it's u...
- October 2nd, 2007, 5:49 am
- Forum: Scripts Discussion
- Topic: undefined is not an object in E4X xml parsing
- Replies: 7
- Views: 13997
Re: E4X
Hey Jeff, hey dale... is .filter your <filter> tag, and you're trying to retrieve the contents of that node? the contents should be a text node, so i would think .filter.text() would work. Thanks for the reply. If I replace if(filters[child].effect.name) with if(filters[child].effect.name.text()) I ...
- October 1st, 2007, 5:55 pm
- Forum: Scripts Discussion
- Topic: undefined is not an object in E4X xml parsing
- Replies: 7
- Views: 13997
I'm parsing Final Cut XML files. E4X XML parsing is now native in CS3 Extendscript and it kicks all kinds of ***. All of the stuff I was converting to JSON are now native objects, with great iterators and really intuitive access to the tree. You've even got namespaces, so all the mulitple flavors of...
- October 1st, 2007, 3:02 pm
- Forum: Scripts Discussion
- Topic: Deleting Files from Disk via scripting
- Replies: 5
- Views: 10867
I don't have the ref in front of me, but when you're removing items you generally want to work backwards down to 0, instead of incrementing up to a length, since length will change when you remove items. Also, where are you setting the variable HDDestination ? Is it defined in the debugger? If not, ...
- October 1st, 2007, 9:51 am
- Forum: Scripts Discussion
- Topic: undefined is not an object in E4X xml parsing
- Replies: 7
- Views: 13997
undefined is not an object in E4X xml parsing
I'm having some unexpected results in some E4X XML parsing. I'm getting an error undefined is not an object . Typically, I would check for undefined, like so if(filters[child].effect.name) but that doesn't seem to be working, additionally if I check explicitly if(filters[child].effect.name != undefi...
- September 27th, 2007, 12:42 pm
- Forum: Scripts Discussion
- Topic: Japanese scripters are better informed
- Replies: 15
- Views: 28036
Hey Jeff, not sure yet. I can see a couple of different ways I might like to autoFixExpressions(). The first would be in the context of a try/catch/finally where if the exception could be fixed with an autofix in the process of catching the exception. The other would be in the sort of replacefootage...
- September 27th, 2007, 6:31 am
- Forum: Scripts Discussion
- Topic: Japanese scripters are better informed
- Replies: 15
- Views: 28036
Re: autoFixExpressions()
i believe it works only when your script makes a change to a name (e.g., an effect name), and you want to fix expressions referring to it. i don't think it's intended to fix expressions previously "broken". i.e., it can't fix what it doesn't know about. you might need to do a search/repla...
- September 26th, 2007, 11:24 am
- Forum: Scripts Discussion
- Topic: Japanese scripters are better informed
- Replies: 15
- Views: 28036
- September 21st, 2007, 5:28 am
- Forum: Scripts Discussion
- Topic: scripts will no longer support file I/O
- Replies: 11
- Views: 18392
while I am sure xml parsing will be just dandy, I think it would suck for adobe to totally change such a core feature. Nearly every script I have ever written uses file i/o. I will have to take time to re-learn (and re-write) something I already know how to do. I have no problem with adobe adding a...
- September 20th, 2007, 12:50 pm
- Forum: Scripts Discussion
- Topic: scripts will no longer support file I/O
- Replies: 11
- Views: 18392
Re: scripts will no longer support file I/O
In addition to the info Jeff provided I was pointing out that in the future one probably should make good use of the XML functionalities that started to appear in CS3 to parse and write stuff. Dunno how deep support will ever be since I've pretty much given up on scripting these days (simply no tim...
- September 20th, 2007, 5:50 am
- Forum: Scripts Discussion
- Topic: Japanese scripters are better informed
- Replies: 15
- Views: 28036
heh. Jeff. I was just responding to nab's original message about autoFixExpressions() and the Safari example happened to be the File object. I do think a run down of how ExtendScript interacts with the AE DOM could be clearer in the documenation. I'm sure it's fully documented, but when you just wan...
- September 19th, 2007, 8:39 pm
- Forum: Scripts Discussion
- Topic: Japanese scripters are better informed
- Replies: 15
- Views: 28036
Doing some research I ran across the reflection interface for ExtendScript ExtendScript Reflection Interface ExtendScript provides a reflection interface that allows you to find out everything about an object, including its name, a description, the expected data type for properties, the arguments an...
- September 19th, 2007, 8:18 pm
- Forum: Scripts Discussion
- Topic: scripts will no longer support file I/O
- Replies: 11
- Views: 18392
Additional global functions for standard user I/O (alert, confirm, and prompt) and static functions for file I/O, are defined by ExtendScript; for detailed reference information, see the Adobe Bridge® JavaScript Reference. NOTE: The After Effects global functions for standard dialogs and file I/O a...
- September 18th, 2007, 8:52 am
- Forum: Scripts Discussion
- Topic: app.executeCommand() and GUI prompts
- Replies: 5
- Views: 11323
Hey Lloyd,
It'd be a bit of a hack but you could call a GUI script with callSystem() after a delay on the Mac.
http://www.apple.com/applescript/uiscripting/
Not sure about Windows...
It'd be a bit of a hack but you could call a GUI script with callSystem() after a delay on the Mac.
http://www.apple.com/applescript/uiscripting/
Not sure about Windows...
- September 12th, 2007, 1:19 pm
- Forum: Scripts Discussion
- Topic: Japanese scripters are better informed
- Replies: 15
- Views: 28036
this method is now documented in the CS3 scripting guide... Project autoFixExpressions() method app.project.autoFixExpressions(oldText, newText) Description Automatically replaces text found in broken expressions in the project, if the new text causes the expression to evaluate without errors. Param...