Home Technical Talk

[Maxscript] Get an array or list of properties

polycounter lvl 9
Offline / Send Message
Dickie polycounter lvl 9
I'm aware of the the show() and showProperties() functions in maxscript but as far as I know this information is only printable and not usable within the script. What I need is a way of looping through the properties of object/material/render and collecting the setting of each one into an array, is there any way to go about doing this?

for example
fn CollectProperties objToCollect =
(
	props = showProperties objToCollect
	for i in props do
	(
		-- do something with properties
	)
)

CollectProperties (renderers.current)

It'd be super useful if there was something like renders.current.properties that I'm just missing

Replies

Sign In or Register to comment.