Author Topic: View id manipulation functions  (Read 4675 times)

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
View id manipulation functions
« on: 2010 May 14 00:21:04 »
Hi,
Is there any Javascript function that convert a file name (or any quite arbirary name) to a valid view id, if possible using the same default as used by PI when it loads a file that has characters not allowed in a view id?
(as an aside, removing the restriction on view id name would be nice too).

In the same area, what is the best way to delete a view? When I do an integration, it insists in creating a view named "Integration", or the same name with a number. In a script I need to find the output name or delete any existing view with the same name. View does not seem to have a close operation. And somehow trying to play with window was not obvious (I confess that I did not explore very much yet).

(as an aside again, I would prefer the integration process to provide me with the name of the created view and/or to allow me to configure it)

-- bitli