View Full Version : Deleting Node User-Defined Properties - How To?
CerberusC 08-18-2009, 05:32 PM That's my question...i know how to define a user defined propertie, i know how to recover it, but how can i delete it from the user defined properties?
Cheers!
|
|
denisT
08-18-2009, 06:06 PM
That's my question...i know how to define a user defined propertie, i know how to recover it, but how can i delete it from the user defined properties?
Cheers!
There is no easy way to delete user defined prop in MXS as I know...
Here is my version:
fn deleteUserProp node prop = if getUserProp node prop != undefined do
(
buff = (getUserPropBuffer node) as stringStream
newb = stringStream ""
while not eof buff do
(
str = readLine buff
if str != "" and not matchpattern str pattern:("*" + prop + "*=*") do format "%\n" str to:newb
)
setUserPropBuffer node (replace_LF_with_CRLF (newb as string))
)
CGTalk Moderation
08-18-2009, 06:06 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.