3ds max startup material

hey there

is there any way that will enable u to have default material allready applied to any geometry created ?

cuz i wanna have black wireframe, and grey material polygon when im modeling.

Comments

Comment viewing options

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

here is...

fn cbfnNodeCreated = (
	theNode = callbacks.notificationParam()
	if theNode.category == #Standard_Primitives do (
		theNode.material = standard()
		theNode.wirecolor = black
	)
)
 
callbacks.removeScripts #sceneNodeAdded id:#customSettings
callbacks.addScript #sceneNodeAdded "cbfnNodeCreated()" id:#customSettings

my recent MAXScripts RSS (archive here)

mwaif's picture

Some scripted objects are

Some scripted objects are added in Standard Primitives category but I can't apply startup material to them. maxscript shows category as #Standard Primitives instead of #Standard_Primitives

How can I fix that?

barigazy's picture

If theses new plugs are not

If theses new plugs are not encripted you can change category by yourself to #Standard_Primitives or on the other hand change Anucis code (this line)

if theNode.category == "Standard Primitives" as name do (/*rest of the code*/)

bga

barigazy's picture

...

Then the category name is not "Standard Primitives"

bga

mwaif's picture

I'm afraid some of them are

I'm afraid some of them are encrypted and changing the line in script to: theNode.category == "Standard Primitives" does not work :(

mohdmistry's picture

great thanks

great thanks for "Lord Anubis"
u are a genius, and not a normal one, but a f*n genius.

i,ve been lookin for something like this for long.

Comment viewing options

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