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.
Forum topic · Scripts Wanted
By mohdmistry · 2011-06-12
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.
here is...
Anubis · 2011-06-13
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
mohdmistry · 2011-06-13
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.
mwaif · 2013-06-05
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 · 2013-06-05
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*/)
mwaif · 2013-06-05
I'm afraid some of them are encrypted and changing the line in script to: theNode.category == "Standard Primitives" does not work :(
barigazy · 2013-06-05
Then the category name is not "Standard Primitives"