Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: WAcky on 2017-05-11, 20:45:30

Title: Maxscript reference...
Post 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.

Title: Re: Maxscript reference...
Post by: romullus on 2017-05-11, 21:29:54
Is this what you're looking for? https://corona-renderer.com/wiki/maxscript
Title: Re: Maxscript reference...
Post by: WAcky on 2017-05-11, 22:46:24
It is, but this doesn't give me the names of each of the parameters within the elements :(
Title: Re: Maxscript reference...
Post by: maru on 2017-05-12, 17:48:49
I'll try to provide answer asap...
Title: Re: Maxscript reference...
Post by: WAcky on 2017-05-15, 09:28:33
Thanks :)
Title: Re: Maxscript reference...
Post by: maru on 2017-06-07, 13:37:56
Sorry for not the best timing, but I am still looking into this!
What is on the forum is never forgotten. ;)
Title: Re: Maxscript reference...
Post by: Jahman on 2017-06-07, 13:59:49
Code: [Select]
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"

)
Title: Re: Maxscript reference...
Post by: WAcky on 2017-06-07, 14:44:00
Oooooh thank you :)
Title: Re: Maxscript reference...
Post by: vklein on 2022-04-14, 17:04:13
Thank you, old but gold.