Go Back   AC3D Forums > Resources > AC3D Scripts and Mods
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 14th November 2022, 03:08 PM   #1
osmith
Junior Member
Junior member
 
Join Date: Nov 2022
Posts: 2
Default Revamped palette tool

My annoyance at the numbered material labels in the palette has finally increased to the point that I have dived into the tcl code to see what could be done to improve it.

The palette was already incorporated into a folding frame, so I made better use of the vertical space (control panel was already vertically scrollable) by arranging the materials vertically instead of horizontally. This allowed them to be the full width of the control panel which made room for the material name to be used for the label instead of just the index.

It seems to work well except I couldn't figure out how to trigger a refresh upon opening a file, but it can be manually be refreshed by folding/unfolding the palette.

I also made the label easier to read by setting the text color to black or white depending on the background color so it contrasts better.

See attached image for result.

Affected files are in the attached zip file (based on AC3D 9.0.22):

/scripts/mat_names.tcl << new file, copy to scripts folder
/tcl/ac3dpalette.tcl << modified, backup original then copy to tcl folder
/tcl/ac3dwidget.tcl << modified, backup original then copy to tcl folder
Attached Images
 
Attached Files
File Type: zip mat_names.zip (17.3 KB, 3 views)
osmith is offline   Reply With Quote
Old 14th November 2022, 03:48 PM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,486
Default Re: Revamped palette tool

Excellent!
Andy is offline   Reply With Quote
Old 14th November 2022, 06:01 PM   #3
osmith
Junior Member
Junior member
 
Join Date: Nov 2022
Posts: 2
Default Re: Revamped palette tool

I would love to strip off the default materials when I load a file, but I don't seem to have control over this as it is done within the executable.
osmith is offline   Reply With Quote
Old 15th November 2022, 08:21 AM   #4
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,486
Default Re: Revamped palette tool

For ease of use, a basic palette is provided, and I feel that it is of benefit for many users that it remains. Sorry the Tcl script access for the palette is very limited at the moment. Great mod though!
Andy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 04:55 AM.


AC3D Forum
(C) Inivis Limited 2020