Hi all!
Is it possible with script to have the material of the selected object shown just like the Statistics (Poly amount etc etc, toggles by pressing the "7" key) do in the viewport?
Take care
/M
Forum topic · Scripts Wanted
By Massemannen · 2011-12-02
Hi all!
Is it possible with script to have the material of the selected object shown just like the Statistics (Poly amount etc etc, toggles by pressing the "7" key) do in the viewport?
Take care
/M
titane357 · 2011-12-05
really cool mjbg !!! Thanks :-)
do you know the color of the actual '[+][xxx][xxx]' text ?
Massemannen · 2011-12-02
Thank u, mjbg, works great!
How can I control the size and position of the text, is that the 10,40,0 values?
Take care
M
mjbg · 2011-12-02
here is an exemple:
unRegisterRedrawViewsCallback MaterialStatistics
fn MaterialStatistics =
(
try (MaterialName = "Material: "+$.material.name) catch(MaterialName = "Material:")
gw.wText [10,40,0] MaterialName color:yellow
gw.updateScreen()
redrawViews()
)
registerRedrawViewsCallback MaterialStatistics
I did only to show the material name.. of course you can develop this further to match your needs.