Author Topic: Corona & maxscript : scene environment  (Read 2181 times)

2020-03-16, 00:33:41

Okenite

  • Active Users
  • **
  • Posts: 13
    • View Profile
Hello,

I'm creating tools to optimize our works with Corona and i got problems to acces some features via maxscript.
1st question is it possible to find a complet documentation on corona / maxscript ?
2nd one : i'm actualy try to batch works with the corona direct visibility / reflections / refraction overrides... How can i access these properties with maxscript ?

Thanks a lot for your help

(oups , i forgot an important information: working with corona 4 hotfix 1)

2020-03-16, 08:56:14
Reply #1

rowmanns

  • Corona Team
  • Active Users
  • ****
  • Posts: 1892
  • Corona for 3ds Max QA Team
    • View Profile
Hi,

You can find some Corona maxscript documentation here: https://corona-renderer.com/wiki/maxscript

However a neat trick to find everything else is to load the Maxscript Listener in 3ds Max and then enable the Macro recorder. Then the marco recorder will show you everything you do in UI, in Maxscript.

Cheers,

Rowan

Please read this before reporting bugs: How to report issues to us!
Send me your scene!

2020-03-16, 09:05:17
Reply #2

Okenite

  • Active Users
  • **
  • Posts: 13
    • View Profile
Hi,

Thanks for the feedback, your are right for the listener, but for
corona override, nothing appear in the listener ( all record enabled )
... another idea ? and nothing in the wiki.

Thanks

2020-03-16, 09:42:30
Reply #3

Frood

  • Active Users
  • **
  • Posts: 1919
    • View Profile
    • Rakete GmbH
To get all renderer properties and data types use

"show renderers.current" in the max script listener. For example bg_texmapDirect accepts a texturemap for the direct visibility override and bg_texmapUseDirect is the enabled/disabled state. It's not hard to figure out what you need.

Another option if you are too lazy to lookup the names is to use the corona listener which reads all properties periodically and reports changes, see

https://forum.corona-renderer.com/index.php?topic=16571.msg104052#msg104052

You may find this one interesting as well if you are dealing with environment settings:

https://forum.corona-renderer.com/index.php?topic=25216.0


Good Luck



Never underestimate the power of a well placed level one spell.

2020-03-16, 23:57:09
Reply #4

Okenite

  • Active Users
  • **
  • Posts: 13
    • View Profile
Perfect ! great thanks,
Corona listener do the job !