• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Afterburn and maxscript
#1
Hi, Im trying to script some lights to have AB Shadow Maps then set some values but I cant seem to access the AB Shadow Map properties. I can see them with show, but when I try to view their value I get:
-- Runtime error: Couldn't find a previously defined paramblock in AB_Shadow_MapShadow
And when I try to set their value I get:
** system exception **
Any other ways to access them?
Jordan Walsh
VFX Technical Director

Showreel 2012
Check out my scripts on ScriptSpot!
  Reply
#2
Hi Jordan,

Does this approach works on a 3ds max Raytrace map ?
AB map should be no different - it uses param block for params, wich
automatically add maxscript support.

Kresimir
  Reply
#3
I tried it with standard raytrace, standard shadow map, vray shadows and MR shadows and I can view the value and set the value no problems.
AB Shadow Map gives "-- Runtime error: Couldn't find a previously defined paramblock in AB_Shadow_MapShadow" on viewing or setting

Also Im not sure how to get access to the "Object Shadows" Parameters in AB Shadow maps through maxscript.

I get this when I do "show $.shadowgenerator"
.Size : integer
.Quality : float
.Color : integer
.Bias : float
.UseObjectShadows (Use_Object_Shadows) : boolean
.CreationTime (Creation_time) : integer
.RangeStart (Creation_Start) : integer
.RangeEnd (Creation_End) : integer
.SupersampleQuality (Quality) : float
.MaxSamples (Creation_End) : integer
.SuperSampler (Creation_End) : integer
.Size
.Quality
.Bias
.Quality
false
Jordan Walsh
VFX Technical Director

Showreel 2012
Check out my scripts on ScriptSpot!
  Reply
#4
Hello Jordan,

I have found what causes this bug, and it's fixed.
As for accessing ObjectShadows, that's fixed as well, and parameters will be shown when
user write show $

Thank you

Kresimir
  Reply
#5
Great to hear Kresimir 8)
Jordan Walsh
VFX Technical Director

Showreel 2012
Check out my scripts on ScriptSpot!
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)