Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: Mrshawn on 2016-03-28, 09:39:19

Title: How do i add AO in CTexmap via maxsript?
Post by: Mrshawn on 2016-03-28, 09:39:19
I have read this topic :https://forum.corona-renderer.com/index.php/topic,7294.msg48942.html#msg48942 and I know how to call the class of elements.
But I still don't know how to use it, "CTexmap.texmap=CoronaAO() or CTexmap().texmap=CoronaAO()??" --it does't work--
Sorry..I am a newbie. Please give me a tip.Thanks a lot~~
Title: Re: How do i add AO in CTexmap via maxsript?
Post by: guest_guest on 2016-03-28, 11:32:13
Try this ;)

(maxOps.getCurRenderElementMgr()).addrenderelement (CTexmap texmap:(CoronaAO samplesCount:128 maxDistance:10) name:"AO")


this script automatically add an renderelement type of CTexmap with assigned an CoronaAOto texture map of this element ...
the CoronaAO parameters can be changed ... i wrote a sample for you !! ;)
Title: Re: How do i add AO in CTexmap via maxsript?
Post by: Mrshawn on 2016-03-28, 12:57:05
Try this ;)

(maxOps.getCurRenderElementMgr()).addrenderelement (CTexmap texmap:(CoronaAO samplesCount:128 maxDistance:10) name:"AO")


this script automatically add an renderelement type of CTexmap with assigned an CoronaAOto texture map of this element ...
the CoronaAO parameters can be changed ... i wrote a sample for you !! ;)
Wow~~That's great! Thank you very much. @guest_guest