Plugin: tSXGetMaterial

Legacy tS 6.6
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Plugin: tSXGetMaterial

Post by Fenerit »

Hi there! Ten years after I'm back! I've been out for awhile due to health problems. I've lost lots of things even my plugins also, so THANK YOU to have hosted them. I made this new plugin as a SDK re-learning.
The plugin get the material settings for the current selected object. Like the "Inspect tool" but without the need of picking through or hiding nested objects
to achieve the ones you want the material will get/set on.
Just use either the "Object Info" panel or the "Scene Manager" to select the object and left-click the plugin icon.
The plugin works also with the mouse-click selection, of course.
tSXGetMaterial_1.0.zip
(5.95 KiB) Downloaded 75 times
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Plugin: tSXGetMaterial

Post by clintonman »

It has been a long time. welcome back! :bananahi:
Clinton Reese

http://clintons3d.com
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: tSXGetMaterial

Post by Fenerit »

Thanks, Clinton! As a guest I've read all your topics in the last month, by the way. Nice, very nice works.
User avatar
Emmanuel
Chief Warrant Officer
Posts: 651
Joined: 14 Jun 2009, 06:47

Re: Plugin: tSXGetMaterial

Post by Emmanuel »

Thank you for this new Fenerit tool!
A new plugin for truespace, modeler side, is always a major event. :bananaclaus:

Do you plan to add some improvements ? Multi-material support would be a must, with a compact menu to display the different materials applied on the selected object and the ability to pick the desired one in a click.
I know we can do that with the Scene Material List tool but this one is slow, and all materials from the whole scene are mixed together, with no option to get the materials of a specific object.
tsxGetMaterial1.jpg
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: tSXGetMaterial

Post by Fenerit »

Hi Emmanuel, comment ça va? Merci for your feedback and suggestion. I will take a look for that, albeit I don't have tS 7.x so I cannot "mimick" such a feature, but I think to have understood what you are in search for. Not sure how the things could works on million faces poly, though. :P

P.S.
I forgot mentioning that this plugin get the material also for hidden objects.
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: tSXGetMaterial

Post by Fenerit »

Some progress...
- added n-faces index list; each face returns its material;
- polyhs can be overall painted with the material of the selected face;
- each face can be painted with the material of another face;

...
User avatar
Emmanuel
Chief Warrant Officer
Posts: 651
Joined: 14 Jun 2009, 06:47

Re: Plugin: tSXGetMaterial

Post by Emmanuel »

:bananadrum:
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: tSXGetMaterial

Post by Fenerit »

I'm afraid this workaround is going into a messy thing. MaterialIDs does return the corrected face material but the selected face doesn't match the corrected ID... :roll:
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: tSXGetMaterial

Post by Fenerit »

Well... I found a way to circumvent that. It's a bit weird and need you re-maps the face of existing polyhs works because the faces will swap the materials (scramble); thereafter the problem is gone: plugin face paint and brush tool face paint will works together following the same material IDs sequence. In short, for new projects, the procedure is to paint faces then hit the button "fix material" and the materials will swaps on right IDs for both way of painting. In this way textures and whatever shaders are returned in correct way. Saved project files seem works well once reloaded and modified. Of course you need to paint faces two times. Pretty unuseful maybe.
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: tSXGetMaterial

Post by Fenerit »

Ok, problem solved! :bananacool2:
Post Reply