Chaos Corona Forum
Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: WAcky on 2017-05-11, 20:45:30
-
Hello.
I'm trying to build some scripts to replace the ones I had for vray. Is there a comprehensive maxscript reference for Corona anywhere?
I'm trying to generate render elements but the maxscript listener doesn't want to spit out any properties as I change them. Is this just me? Am I missing something? I'm just trying to guess at the moment...
Cheers.
-
Is this what you're looking for? https://corona-renderer.com/wiki/maxscript
-
It is, but this doesn't give me the names of each of the parameters within the elements :(
-
I'll try to provide answer asap...
-
Thanks :)
-
Sorry for not the best timing, but I am still looking into this!
What is on the forum is never forgotten. ;)
-
clearListener()
re = MaxOps.GetCurRenderElementMgr ()
CoronaRenderElements = for c in RenderElement.classes where c.category == #Corona collect c
for element in CoronaRenderElements do (
elementRef = element()
format "------------ % -------------------\n" (element as string)
for prop in getPropNames elementRef do (
format "% : %\n" prop (classof (getProperty elementRef prop))
)
re.AddRenderElement elementRef
format "\n"
)
-
Oooooh thank you :)
-
Thank you, old but gold.