(Maxscript) How to check if property writable or read-ony?


#1

Hi guy. As the title, can someone help me? Thank you in advanced


#2

Perhaps you can simply parse it out of the showProperties output like this:

fn IsReadOnlyProp obj prop =
(
	local ss = StringStream ""
	showProperties obj prop to:ss
	
	local str = ss as string
	free ss
	
	MatchPattern str pattern:"*read-only*"
)