• Replacing a certain material? Possible?
    9 replies, posted
Is it possible to replace a certain material on a model rather than just replacing the whole thing? Using SetMaterial()
This isn't LUA Side. It's more 3D Modeling, you'll need to edit the material files if you want to edit just individual part.
[QUOTE=Plurbus;24276155]This isn't LUA Side. It's more 3D Modeling, you'll need to edit the material files if you want to edit just individual part.[/QUOTE] Nah its not modeling, Because just like skin switcher I have a alternate texture that I want to change to using Lua, but I cant use skin switcher as its not how my script needs to run, I need to be able to enter a material path, so it can replace the certain material I pick. If you get what I mean?
[QUOTE=iRzilla;24276878]You mean SetMaterial right? [B][URL="http://wiki.garrysmod.com/?title=Entity.SetMaterial"]Entity.SetMaterial [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL][/B][/QUOTE] Yeah, If you [B][URL="http://wiki.garrysmod.com/?title=Entity.SetMaterial"]Entity.SetMaterial [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL][/B] a prop or a ragdoll, It sets the whole model that material, what I want to know is, if its possible to only[B][U][/U] [/B]Entity:SetMaterial() a certain vtf/vmt of a model.
[QUOTE=iRzilla;24277322]Multiple models and clipping.[/QUOTE] Mutliple models are being used, however there is no way to identify them, also what is clipping?
[QUOTE=iRzilla;24277998]What do you mean there is no way to identify them? All models/entities will have to be defined to some sort of variable..[/QUOTE] As a example (QC) [code] $model "Test1" "Test1.smd" $model "Test2" "Test2.smd" $model "Test3" "Test3.smd" [/code]These are all identified as bodygroups, but my question is, how would I set that bodygroup material to the one I set it? (Using lua)
Bump any idea anyone?
Sorry, you need to Log In to post a reply to this thread.