Author Topic: CoronaProxy not rendering via MaxScript  (Read 1709 times)

2017-10-17, 10:44:24

-Ben-Battler-

  • Active Users
  • **
  • Posts: 170
    • View Profile
Hi you MaxScript masters!

I have an issue. We have our libraries with 3d models and I'd like to batch render them all out to single JPGs. This works so far so good, the only problem I have is that Corona Proxies won't show in the render. If I start the render by hand it's perfectly fine but if I start it via the MaxScript render function it is not visible. All the rest works just fine I think it's just a problem of that function not rendering CoronaProxies.

Can anyone help me out on that one?

Code: [Select]
clearSelection()
temppath = maxFilePath
select geometry
deselect $Std_Floor
theObjs = selection as array
clearSelection()

for obj in theObjs do
(
select $Std_Floor
selectMore obj
if (isGroupMember obj) == true then
(
)
else
(
IsolateSelection.EnterIsolateSelectionMode()
jpgfile = temppath+obj.name+".jpg"
maxfile = temppath+obj.name+".max"
render camera:$Camera001 outputFile:jpgfile vfb:false
saveNodes obj maxfile quiet:true
IsolateSelection.ExitIsolateSelectionmode()
)

)
clearSelection()

Thanks in advance!
Visit boxel

2017-10-18, 14:38:34
Reply #1

-Ben-Battler-

  • Active Users
  • **
  • Posts: 170
    • View Profile
Nevermind it works now. Was probably my poor coding skillz.

But another question: Are MaxScript functions like adaptivity_targetError not accessible or am I doing something wrong?

In my logic this should set a Noise Level Limit of 5.0:

Code: [Select]
CoronaRenderer.adaptivity_targetError 5.0

But the Listener returns an unknown property error.
Visit boxel

2017-10-18, 17:42:24
Reply #2

Frood

  • Active Users
  • **
  • Posts: 1921
    • View Profile
    • Rakete GmbH
Code: [Select]
renderers.current.adaptivity_targetError=5

Good Luck


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

2017-10-18, 18:12:44
Reply #3

-Ben-Battler-

  • Active Users
  • **
  • Posts: 170
    • View Profile
Code: [Select]
renderers.current.adaptivity_targetError=5

Good Luck

Someone like you was what I was hoping for. I'm not very confident with the syntax yet ;)
Thank you Frood!
Visit boxel