Notifications
Clear all

[Closed] Initialize material as bitmap-texture from image-file

I’m still relatively inexperienced with MaxScript and I’ve run into a dead end.
I’m trying to initialize one of the materials in the material-editor as a bitmap-texture using an image from the hard-drive, so essentially just this:

I found a couple of related things in the documentation, but I’m unsure how to put them together. To initialize the texture I’m just using this at the moment:

local tex = Bitmaptexture filename:"path/to/image/file"

Not sure if that’s even the way to do it, but even if it is, how would I actually apply that to one of the materials in the material-editor, and how I can grab the material-ID?