Page 1 of 1
undefine a custompropertie by script
Posted: Mon Dec 22, 2008 9:12 am
by jmburnod
Hi All,
How delete a custom propertie of an object by script ?
Thank you for help
Jean-Marc
Posted: Mon Dec 22, 2008 10:14 am
by Mark
Dear Jean-Marc,
This script deletes custom property "foo" from an object, after it has been clicked on.
Code: Select all
on mouseUp
put the customProperties of me into myArray
delete variable myArray["foo"]
set the customProperties of me to myArray
end mouseUp
Best regards,
Mark
undefine a custompropertie by script
Posted: Mon May 18, 2009 6:30 pm
by jmburnod
Dear Mark
I'm confuse,
I watch after a search in the forum i have forgotten to thank you for your script.
It work fine also with param like that
Code: Select all
on dDelprop n,g
put n into LaProp
put g into BufIm
put the customProperties of image bufIm into myArray
delete variable myArray[LaProp]
set the customProperties of image bufIm to myArray
end dDelprop
Best regards
Jean-Marc