Author Topic: Could I switch scene environment by using maxscript?  (Read 2632 times)

2016-06-03, 23:26:32

Cheesemsmsm

  • Active Users
  • **
  • Posts: 98
    • View Profile
I'd like to switch between Corona and Max env with maxscript.

I've found
Quote
  .bg_source (enviro_sceneEnvironmentSource) : integer
but don't know how to use it.

2016-06-06, 16:28:24
Reply #1

Cheesemsmsm

  • Active Users
  • **
  • Posts: 98
    • View Profile
Hello from the other side
I must have called a thousand times

2016-06-07, 09:29:06
Reply #2

Jahman

  • Active Users
  • **
  • Posts: 45
  • Panteleev Sergey
    • View Profile
    • some of my scripts for 3ds max
Code: [Select]
if isproperty renderers.current "bg_source" then renderers.current.bg_source = if renderers.current.bg_source == 1 then 0 else 1this snippet will toggle between max and corona environment

2016-06-07, 15:29:47
Reply #3

Cheesemsmsm

  • Active Users
  • **
  • Posts: 98
    • View Profile
Code: [Select]
if isproperty renderers.current "bg_source" then renderers.current.bg_source = if renderers.current.bg_source == 1 then 0 else 1this snippet will toggle between max and corona environment

Thank you so much!! you made my day.
I wonder why no one in corona team can answer this.