Digital Art Zone

 
     
Material names in exported .obj file
Posted: 18 November 2012 11:29 AM   [ Ignore ]
New Member
Total Posts:  1
Joined  2011-01-02

Hi,
When I export multiple objects that share some of the material names into .obj files,
Daz Studio appends the object name to the material names.
For example, if there are objects with the names prop1, prop2, prop3 and so on,
with materials with the same names, DS exports .obj files with material names
mat_prop2, mat_prop3 ...
While this is understandable, it is annoying when I’m working with duplicates of the same object that I intend to use same materials on.
Is there a way to keep the material names “as is” when exporting to .obj?
Choosing different options in the export window doesn’t seem to change this behavior.
(I’m using DS 4.5.0.114.)

Profile
 
 
Posted: 18 November 2012 11:47 AM   [ Ignore ]   [ # 1 ]
Addict
Avatar
RankRankRankRank
Total Posts:  4545
Joined  2007-09-13

Within DS…not that I know of.

Usually, if I really need to, I’ll open the OBJ and MTL files in a text editor or UVMapper (free version) and rename things. 

If you use a text editor you’ll need to edit both, manually…UVMapper just load the OBJ and then start selecting by Material and rename it/assign.  When you save it out of UVMapper, it will write the new MTL file with the corrected names.

 Signature 

1432 old posts

My ShareCG gallery.

Just because something costs a lot, doesn’t mean it’s the best…

It just means it’s expensive.

Profile
 
 
Posted: 18 November 2012 02:27 PM   [ Ignore ]   [ # 2 ]
Active Member
Avatar
RankRank
Total Posts:  803
Joined  2007-01-08

In the export box, there are options to name materials after groups, etc. I’ve never used them, but I think one of those should do what you want.

Profile
 
 
Posted: 18 November 2012 06:10 PM   [ Ignore ]   [ # 3 ]
Addict
Avatar
RankRankRankRank
Total Posts:  2757
Joined  2004-04-14

If renaming occurs, there are two ways to correct it.

1. In a text editor like Notepad++

2. Using Poseray.  See my tutorial here - http://www.mediafire.com/view/?adtf0812j6py43i - as it already covers that.

 Signature 

My DAZ3D Store
My Free Stuff
My Art @ DeviantART
Ships of the Line - MEGA THREAD
How to use the Poser Format Exporter - **Updated 2013-02-09**

Profile
 
 
Posted: 18 November 2012 08:29 PM   [ Ignore ]   [ # 4 ]
Addict
Avatar
RankRankRankRank
Total Posts:  4545
Joined  2007-09-13
Mattymanx - 18 November 2012 06:10 PM

If renaming occurs, there are two ways to correct it.

1. In a text editor like Notepad++

2. Using Poseray.  See my tutorial here - http://www.mediafire.com/view/?adtf0812j6py43i - as it already covers that.

Blender 2.4x was bad at doing that to both materials and group names…I haven’t noticed it in 2.6x, so maybe they finally ‘saw the light’?

 Signature 

1432 old posts

My ShareCG gallery.

Just because something costs a lot, doesn’t mean it’s the best…

It just means it’s expensive.

Profile