ewerybody
10-15-2004, 12:36 PM
ok! Since my thread on highend3D didn't yield any fruits. I try it here :scream: (besides here are the better smileys!)
For workflow-purposes I first wrote a script wich creates a new lambertshader and just opens up a dialogue for browsing for a texture, when the textue is chosen, the script assigns the texturefilename to the new shader. Now I had a new Idea! : I just pick an object, run the script and the object has got the chosen texture on it.
Now my only problem is:
If you got your Hypershade minimized like I always do, this new shader doesn't arise when created with that script. You either have to select "textures" and "materials" again or close and open up the HyperShade again to see the new shader.
I crawled for a simple funktion that just refreshes the panel, but it all doesn't seem to work.
Any Ideas?
You can find the script here:
createNewLambertWithTex.mel (http://www.goodsoul.de/_private/melscripts/createNewLambertWithTex.mel)
But use it at your own risc! I mean thats a bug that prevents me from releasing it, even if its quite cool so far: Pick object Pick texture - ready
For workflow-purposes I first wrote a script wich creates a new lambertshader and just opens up a dialogue for browsing for a texture, when the textue is chosen, the script assigns the texturefilename to the new shader. Now I had a new Idea! : I just pick an object, run the script and the object has got the chosen texture on it.
Now my only problem is:
If you got your Hypershade minimized like I always do, this new shader doesn't arise when created with that script. You either have to select "textures" and "materials" again or close and open up the HyperShade again to see the new shader.
I crawled for a simple funktion that just refreshes the panel, but it all doesn't seem to work.
Any Ideas?
You can find the script here:
createNewLambertWithTex.mel (http://www.goodsoul.de/_private/melscripts/createNewLambertWithTex.mel)
But use it at your own risc! I mean thats a bug that prevents me from releasing it, even if its quite cool so far: Pick object Pick texture - ready
