Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Bug Reporting => Topic started by: archimi on 2023-06-29, 16:42:23

Title: Maxscript error with CoronaColorCorrect in Corona 10
Post by: archimi on 2023-06-29, 16:42:23
Hi,
Maybe it's not a bug, but since the switch to version 10, I have an error message in a script I had made that worked perfectly with previous versions of Corona.
Here is the line that is causing the problem
Code: [Select]
renderers.current.bg_texmap = CoronaColorCorrect name:"EnvMapCorrect"
The part
Code: [Select]
CoronaColorCorrect name:"EnvMapCorrect"gives this error message:
Code: [Select]
-- Known system exception
-- ########################################################################
-- Address: 0x88c434b1; nCode: 0x00000000C0000005
-- Desc: EXCEPTION_ACCESS_VIOLATION The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
--       Read of Address: 0x0000000000000028
-- ########################################################################
-- MAXScript callstack:
-- thread data: threadID:8136
-- ------------------------------------------------------
-- [stack level: 0]
-- In top-level
-- ########################################################################
-- C++ callstack:
-- (ntdll): (filename not available): KiUserExceptionDispatcher
-- (MAXScrpt): (filename not available): MAXClass::apply_keyword_parms
-- (MAXScrpt): (filename not available): MAXTexture::intern
-- (MAXScrpt): (filename not available): MAXTexture::intern
-- (MAXScrpt): (filename not available): MAXClass::apply
-- (MAXScrpt): (filename not available): CodeTree::eval
-- (MAXScrpt): (filename not available): SourceFileWrapper::eval
-- (MAXScrpt): (filename not available): IsMAXScriptListenerInViewport
-- (USER32): (filename not available): GetMenuItemCount
-- (USER32): (filename not available): GetMenuItemCount
-- (USER32): (filename not available): GetMenuItemCount
-- (USER32): (filename not available): DispatchMessageW
-- (USER32): (filename not available): CallWindowProcW
-- (UIControls): (filename not available): (function-name not available)
-- (UIControls): (filename not available): (function-name not available)
-- (USER32): (filename not available): DispatchMessageW
-- (USER32): (filename not available): DispatchMessageW
-- (USER32): (filename not available): IsDialogMessageW
-- (3dsmax): (filename not available): XMLAnimTreeEntry::GetUnique
-- (3dsmax): (filename not available): MaxSDK::SharedMesh::GetMeshPtr
-- (Qt5Core): (filename not available): QObject::qt_static_metacall
-- (Qt5Core): (filename not available): QEventDispatcherWin32::preProcessNativeEvent
-- (Qt5Core): (filename not available): QEventDispatcherWin32::processEvents
-- (qwindows): (filename not available): qt_plugin_query_metadata
-- (Qt5Core): (filename not available): QEventLoop::exec
-- (Qt5Core): (filename not available): QCoreApplication::exec
-- (3dsmax): (filename not available): MaxSDK::SharedMesh::GetMeshPtr
-- (3dsmax): (filename not available): NodeAndAnims::SetNode
-- (3dsmax): (filename not available): UtilGfx::InitRectIPoint3
-- ########################################################################

It worked perfectly with previous versions. What needs to be fixed for this to work?

Thanks
Title: Re: Maxscript error with CoronaColorCorrect in Corona 10
Post by: clemens_at on 2023-07-03, 09:07:26
I'm not sure what causes this but try writing it like this:
Code: [Select]
renderers.current.bg_texmap = CoronaColorCorrect()
renderers.current.bg_texmap.name = "EnvMapCorrect"
Title: Re: Maxscript error with CoronaColorCorrect in Corona 10
Post by: Aram Avetisyan on 2023-07-03, 09:43:25
I'm not sure what causes this but try writing it like this:
Code: [Select]
renderers.current.bg_texmap = CoronaColorCorrect()
renderers.current.bg_texmap.name = "EnvMapCorrect"

Hi,

Yes, this will work.
You just need to close render settings and re-open to see the updates.
Title: Re: Maxscript error with CoronaColorCorrect in Corona 10
Post by: archimi on 2023-07-03, 10:06:47
I'm not sure what causes this but try writing it like this:
Code: [Select]
renderers.current.bg_texmap = CoronaColorCorrect()
renderers.current.bg_texmap.name = "EnvMapCorrect"

Hi,

it works ! thank you for your help
Title: Re: Maxscript error with CoronaColorCorrect in Corona 10
Post by: archimi on 2023-07-03, 10:22:29
Quote
You just need to close render settings and re-open to see the updates.
Not even, at home it updates live !
Thanks for your help.