Announcement

Collapse
No announcement yet.

Finding the Interpolated material...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Finding the Interpolated material...

    Is there an easy way to find a material with interpolation turned on?

    I'm getting pre-passes when rendering (without GI) and I don't know where the interpolated material is.

    I think VrayAutomator handles this but I don't believe it's designed for 1.47.

  • #2
    Davision,

    This script doesn't find the materials with the interpolation parameter, but will set the materials of the current selection to either true or false (currently set to false)
    If you really need something to find the materials, that isn't too hard either.

    note: this will work with two levels of multi-subobjects, but wont work with other compund material types like blend, composite, doublesided, etc. If you need something a little bit more, please let me know.

    Just select the objects you wan to cheack and drop the .ms file in your viewport. Look in the listener (F11) for errors.

    J.

    Code:
    -- change the properties of materials in the current object selection.
    
    
    fn changeparam u=
    (
    -----------------------------------------------------
    -- this is where the material parameters are changed!
    -- change this to true or false, or add other material properties.
    	u.reflection_useInterpolation=false
    -----------------------------------------------------
    )
    for p in selection do
    (
    	pushprompt "Working..."
    	if p.material!=undefined then
    	(
    		s=p.material
    		format "% " s.name
    		if classof s==Multimaterial then
    		(
    			for t in s do if classof t==Multimaterial then
    			(
    				for u in t do changeparam u
    			) else
    			(
    				changeparam t
    			)
    		) else
    		(
    			changeparam s
    		)
    	)
    )
    pushprompt "Finished!"
    www.minmud.co.uk

    Comment

    Working...
    X