max script that remove textures and lights from objects before rendering

hey all

i need a little help

i wanna max script that remove textures and lights from objects before rendering the scene

even u have something simple , plz send it to me
i need it so fast,if u could help me

thanks for yr helping anyway

u can send me this script on my mail

naoitogether@hotmail.com
naoitogether@yahoo.com

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

Hi Nemo, what you mean about

Hi Nemo, what you mean about textures? In suggested script above standard material appled to all objects so no textures. If you talk about environment map, you can disable it:

useEnvironmentmap = false -- turn off EnvMap
renderDisplacements = false -- turn off Disp.
renderEffects = false -- turn of fx
backgroundColor = black -- (color 0 0 0)

Also if you want to render with objects wirecolor (without any material), try this:

(
	holdMaxFile()
	mapped fn clearMtl objs = (objs.material = undefined)
	clearMtl objects
	delete lights
	useEnvironmentmap = false
	render()
	fetchMaxFile quiet:true
)

I use Hold/Fetch instead of Undo to prevent big undo record on heavy scenes.

my recent MAXScripts RSS (archive here)

NemoKing's picture

first thanks alot

first thanks alot Anubis

about yr question "what you mean about textures?"
im not good at 3ds max

all what i want is that my scene has lot of textures , any kind of textures that may be found

all what i have to do is remove these textures so that i can make render for the scene in ashort time

the basic idea is to make any optimization in the scene
this may be done by:
1- removeing the textures or lights or both
2- make render for the animated objects every frame they move and make one render for the static objects

again and again thanks alot

and if u could give me better script or one that more organized that will be so nice

NemoKing's picture

thanks alot but wat about

thanks alot

but wat about textures!!!!!!!

and thanks again

br0t's picture

This script removes all

This script removes all lights, applies a white standard material to everything and renders the image with the given render settings. It's only temporary for when you execute the script, lights and materials are restored after rendering.

If you need any adjustments just say so.
Greetings

macroScript plainRender
        category:"Custom"
        tooltip:"Render without textures and lights"
        buttontext:"Plain Render"
    (
        undo on
        (
	    for lux in lights do delete lux
            plainMat = standard diffuse:(color 220 220 220) twosided:true
            for obj in objects do obj.material = plainMat
            render()
        )--end undo on
        max undo
    )--end macroscript
AttachmentSize
plainRender.ms 434 bytes

Never get low & slow & out of ideas

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.