J
Julian
Guest
Hello!
I am trying to save the state of the currently opened ADE-window to a
given directory.
My solution looks like this:
//get session object
session=sevSession(hiGetCurrentWindow())
//open the "Save state" dialog
sevSaveState(session)
//set values
sevSaveForm1->optionCellView->value = "Directory"
sevSaveForm1->stateSaveDir->value = "~/myArtistStateDir"
sevSaveForm1->name->value = "mystate"
(_sevSelectComponentField ''sevSession1 ''save ''all)
//close form
hiFormDone(sevSaveForm1)
Unfortunately, this is not working anymore after you have closed and
re-opened the ADE window, because now the "save state"-form name has
changed to "sevSaveForm2". So how can I access this form in general
way.
Or is there an easier way of doing this?
Thanks in advance
Julian
I am trying to save the state of the currently opened ADE-window to a
given directory.
My solution looks like this:
//get session object
session=sevSession(hiGetCurrentWindow())
//open the "Save state" dialog
sevSaveState(session)
//set values
sevSaveForm1->optionCellView->value = "Directory"
sevSaveForm1->stateSaveDir->value = "~/myArtistStateDir"
sevSaveForm1->name->value = "mystate"
(_sevSelectComponentField ''sevSession1 ''save ''all)
//close form
hiFormDone(sevSaveForm1)
Unfortunately, this is not working anymore after you have closed and
re-opened the ADE window, because now the "save state"-form name has
changed to "sevSaveForm2". So how can I access this form in general
way.
Or is there an easier way of doing this?
Thanks in advance
Julian