Notifications
Clear all

[Closed] VrayToon Excludelist

I’m using VrayToon on my whole scene, and am excluding some objects from it. If I delete any of these excluded objects, they show up as <deleted> in the Exclude List of VrayToon.

However, it's not possible to delete multiple items from the Exclude list: I have to do them 1 by 1. I'd rather have some maxscript control.

    vr = getAtmospheric 1
    print vr.excludeList
    
Changing items in the array works fine, but it says "-- Runtime error: Array parameter size fixed, cannot append: excludeList" whenever I want to change the size of the array.

Any chance I can get by this and change the size?

[edit]
Just thought of the following (probably works but it’s not really clean):

  • Create 1000 boxes
  • Add them to the exclude list
  • Delete the boxes
  • Whenever I want to add items to the list, just replace the “undefined” fields with my object.
1 Reply

Ran into a similar problem with the Composite Shadow plugin (HairFX) I think it was – came to the same conclusion, but make sure that those ‘undefined’ fields don’t magically clear themselves. If they do, you’re back to square 1… having an array you can’t shrink/expand.

Best thing is to drop a line to the authors, asking them to allow the parameter’s array to be shrunk/expanded via scripting / expose internal functions to adjust the array