Notice: Community Accounts Have Changed. What You Need To Know >>

Topic - Seth Richardson Irradiance XSR and SP2 - not !

Since the SP2 upgrade, the script doesn't work. If I try to use it, I get these 3 successive messages, in that order :







Does anyone else have trouble with it ? I reinstalled the latest version (for Mac - and I'm still with 10.5) sent an email to Seth, but understandably he's not available right now...

-
http://pascalnocquet.com
http://modology.fr - Modo Forum in French
Twitter : @modofr

Yeah, it seems they made a change so that you can only query channels that are not disabled by other channels. For example, the reflection rays channel is disabled (greyed out) when the reflection amount is 0, in which case it will give that popup error. Actually, the render current view script that is included with modo also runs into this problem, but it executes OK.

Anyway, I went through and fixed this in IrradianceXSR, you just have to search through the various functions and add some if statements to check if transparency amount, reflection amount and subsurface amount are nonzero before trying to query dependent channels. It's the same three lines pasted in all the sampling and basic preset functions right before the relevant queries.

if lx.eval('item.channel advancedMaterial$reflAmt ?') > 0:

if lx.eval('item.channel advancedMaterial$tranAmt ?') > 0:

if subsamt > 0:
Thanks for the answer. I'm not really familiar with all that... I'll see if I can fix it following your instructions.

-
http://pascalnocquet.com
http://modology.fr - Modo Forum in French
Twitter : @modofr

Message edited by Matelot on 10/23/2009 - 11:50 AM

Please where exactly put this text ?
between what and what ?

Quote from Onim :
Yeah, it seems they made a change so that you can only query channels that are not disabled by other channels. For example, the reflection rays channel is disabled (greyed out) when the reflection amount is 0, in which case it will give that popup error. Actually, the render current view script that is included with modo also runs into this problem, but it executes OK.

Anyway, I went through and fixed this in IrradianceXSR, you just have to search through the various functions and add some if statements to check if transparency amount, reflection amount and subsurface amount are nonzero before trying to query dependent channels. It's the same three lines pasted in all the sampling and basic preset functions right before the relevant queries.

if lx.eval('item.channel advancedMaterial$reflAmt ?') > 0:

if lx.eval('item.channel advancedMaterial$tranAmt ?') > 0:

if subsamt > 0:

Well, I don't have permission to distribute the script, and my line numbers might be different because I made other changes to some of the functions in the script, but here is a screenshot from the samplesdraft function:



Note the indentation, python depends on proper indentation so use a good text editor that will recognize the indentation and not just random spaces or other whitespace (I use notepad++). So, go through all the sampling and preset functions and find those areas and add the three highlighted lines.
I have the same problem.
Ya these are changes that came up in SP2 I will have them fixed today nothing to hard just need to have it check extra parameters that lux apparently had error out if you try turning on things when they are a zero value.

There were already checks like this in place but they added more so I just have to put more in lol.

Message edited by Seth Richardson on 11/6/2009 - 6:47 PM

Okay script is all updated and in your accounts.
Thank you very much, Seth.
Seth, thank you. I will D/L the new XSR.

Nick

koudis.com
Thanks, Seth!
thnx Seth