python: problem with modifers

python: problem with modifers

Anonymous
Not applicable
491 Views
0 Replies
Message 1 of 1

python: problem with modifers

Anonymous
Not applicable

so I must be missing something about modifiers and python

 

I'm trying to collect the parameters using something like this but not all modifers expose their parameters. If I try ParameterBlock.Count() it will return 0 on some of the modifers like displace and push but works fine on others like bend and pointcache.

 

 

 

for p in MaxPlus.Core.GetRootNode().Children:
	for q in p.Modifiers:
		for r in q.ParameterBlock:
			print r.Name, r.Value

 

 

Running maxscript show $.modifiers[1] I can then see the parameters and strangely from then on python will expose them.

 

max 2016

sublime with Sendto3dsMax

 

0 Likes
492 Views
0 Replies
Replies (0)