Author Topic: Maxscript reference...  (Read 6003 times)

2017-05-11, 20:45:30

WAcky

  • Active Users
  • **
  • Posts: 43
    • View Profile
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.


2017-05-11, 21:29:54
Reply #1

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8856
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Is this what you're looking for? https://corona-renderer.com/wiki/maxscript
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2017-05-11, 22:46:24
Reply #2

WAcky

  • Active Users
  • **
  • Posts: 43
    • View Profile
It is, but this doesn't give me the names of each of the parameters within the elements :(

2017-05-12, 17:48:49
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
I'll try to provide answer asap...
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2017-05-15, 09:28:33
Reply #4

WAcky

  • Active Users
  • **
  • Posts: 43
    • View Profile
Thanks :)

2017-06-07, 13:37:56
Reply #5

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
Sorry for not the best timing, but I am still looking into this!
What is on the forum is never forgotten. ;)
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2017-06-07, 13:59:49
Reply #6

Jahman

  • Active Users
  • **
  • Posts: 45
  • Panteleev Sergey
    • View Profile
    • some of my scripts for 3ds max
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"

)
« Last Edit: 2017-06-07, 14:05:52 by Jahman »

2017-06-07, 14:44:00
Reply #7

WAcky

  • Active Users
  • **
  • Posts: 43
    • View Profile
Oooooh thank you :)

2022-04-14, 17:04:13
Reply #8

vklein

  • Active Users
  • **
  • Posts: 8
    • View Profile
Thank you, old but gold.