[javascript-dev] Re: [bugreport] this.patcher.filepath
Mattijs Kneppers
mattijs at smadsteck.nl
Sun Oct 7 08:51:52 MDT 2007
- Previous message: [javascript-dev] [bugreport] this.patcher.filepath
- Next message: [javascript-dev] Re: [bugreport] this.patcher.filepath
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Quote: thijs.koerselman wrote on Fri, 05 October 2007 12:46 ---------------------------------------------------- > this.patcher.filepath only works in a javascript object that is located in the main patcher window. If you place the js object with the same script in a subpatcher, the attribute seems to return an empty string. > > I suspect this might be a known issue, but I can't find it in the archives. > > (Windows 4.6.3) > > -Thijs > ---------------------------------------------------- I assume filepath is only available for patchers that are actually saved to disk, i.e. abstractions and top patchers. To get the file path of the top patcher from inside a subpatcher you need to traverse up until you reach the top patcher and take the filepath property of that one.. Mattijs -- SmadSteck - http://www.smadsteck.nl Hard- and software for interactive audiovisual sampling
- Previous message: [javascript-dev] [bugreport] this.patcher.filepath
- Next message: [javascript-dev] Re: [bugreport] this.patcher.filepath
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
