Page 1 of 1
Sample stack for all properties and custom properties?
Posted: Wed Dec 28, 2011 9:36 am
by keithglong
Hi All,
Does anyone know of a sample stack demonstrating how to pull all of the properties and custom properties out of a stack, putting them into a file, and then demonstrating how to put the file of data back into the stack (or into another copy or clone of the original stack)?
Thanks,
- Boo
Re: Sample stack for all properties and custom properties?
Posted: Wed Dec 28, 2011 3:13 pm
by jmburnod
Hi KeithLong,
In attachment, one stack for export custom prop of stack and cds to a file and import from the file
I hope this help
Best regards
Jean-Marc
Re: Sample stack for all properties and custom properties?
Posted: Wed Dec 28, 2011 10:09 pm
by keithglong
Thanks Jean-Marc! Taking a look now...
Sincerely,
- Boo
Re: Sample stack for all properties and custom properties?
Posted: Wed Dec 28, 2011 10:16 pm
by keithglong
Hmmmm. I am having a problem running this stack under Windows 7... Will keep playing with it. (Thanks again.)
Re: Sample stack for all properties and custom properties?
Posted: Thu Dec 29, 2011 1:24 am
by keithglong
Hi Again,
I reformatted the file paths for the opening, saving of files... However, having a problem with the following lines of the Stack's script:
Code: Select all
on dansmes t
if the environment = "development" then
put t
end if
end dansmes
Not all of the custom properties are being saved, loaded...
Thanks,
- Boo
Re: Sample stack for all properties and custom properties?
Posted: Thu Dec 29, 2011 2:54 pm
by jmburnod
Hi.
However, having a problem with the following lines of the Stack's script:
Code: Select all
on dansmes t
if the environment = "development" then
put t
end if
end dansmes
This script is a development tool. I use it to watch a value in the messageBox when the script work.
It work only if the environment = "development".
It is to easy to find it before building the standalone and if you forget one the script don't work in a standalone
Not all of the custom properties are being saved, loaded...
Yes. Only the customproperties of the stack and of each card of the stack
Best regards
Jean-Marc
Re: Sample stack for all properties and custom properties?
Posted: Thu Dec 29, 2011 9:03 pm
by keithglong
Hi Again,
Yep, I realize that about the Message Box. (I need to utilize that feature more often myself.)
And regarding the custom properties not being saved, only two of the option menu buttons are being saved/updated...
For example:
cPage1 MyProp1 green, MyProp2 true, MyProp3 green
I set all of them to green, but the mMyProp2 button does not change from true to green. Same on the second card... (I have not had time to look into it, but I am sure I will be able to figure it out.)
Thanks again,
- Boo
**** Update ****: I deleted the mMyProp2 button, recreated it, then regrouped the buttons. All works now. For some reason, the original mMyProp2 button in the original script was not registering... I checked it in the inspector, made sure it was grouped, that it was named correctly, etc. Not sure why it wasn't working...