Import OBJ and using existing material *NEEDS CORRECTION* #30380
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
8 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#30380
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
%%%For a detailed discription see here: http://blenderartists.org/forum/showthread.php?234521-Import-OBJ-but-using-existing-material
The Patch does work already and has been reviewed by Campbell.
In my opinion this should be done for all kind of Meshimporter.%%%
Changed status to: 'Open'
%%%The problem with this patch is it modifies existing materials, IMHO it should use them as-is without any modifications.%%%
%%%I don't understand. In my view as a user an not as coder it does exactly this: It uses existing materials, it doesn't change them. Thas what this patch is for.
Maybe it changes existing materials within Blender but this it's not visible for the user ?%%%
%%%Hi. double checked this patch and it still changes existing materials.
Try the following.
IMHO it should use the existing material but not touch it in that case since this material can be used in many of your own objects.%%%
%%%I just added this after line 203:
if use_material_exists:
Now it doesn't change existing materials anymore.
%%%
%%%I just merged the Patch with the newest build (blender-2.62-r45133, Sun Mar 25 03:09:10 2012).
The problem with changing existing materials is fixed now.
But I'm to stupid to upload files here, I always get an error when I click on "save changes" in the "attachements" register.
So I added it here: http://blenderartists.org/forum/showthread.php?234521-Import-OBJ-but-using-existing-material
%%%
%%%@Campbell Barton
Is my latest fix working for you the way you expect it ?%%%
%%%It is a dream come true that I found your thread in blenderartists.org .
But the thing is not working for me.
The 05-Feb-12 version gave no errors, but didn't work either.
The 25-Mar-12 gave 3 or 4 errors.
Then I downloaded the 2.63 RC1 blender and it works! This is extraordinary!
Thank you so much. I also support this feature being added to (at least) OBJ, 3DS and DXF imports.
This is a VERY needed feature for people who use blender as a visualization tool.%%%
%%%@Campbell Barton
I've updated the Script for Blender 2.67, see here: http://www.blenderartists.org/forum/showthread.php?292369-Here-is-a-little-timesaver-if-you-use-Sketchup-to-model-buildings
Is it OK from a Coders view ?
Would be cool if you would commit for Trunk.
%%%
%%%I just tested the script with some .obj files in Blender 2.67a and it works beautifully here. When importing third party object collections or when (re)importing parts of models created in other software, this one option enables a smoother workflow than has so far been possible.
Earlier, without the option there were basically two options when adding new geometry from obj files to an existing file:
Option 1 may leave unwanted materials in the scene and takes time, option 2 works but involves steps that are now unnecessary and leaves an extra blend file behind. As a user, I would very much like to see this feature to be integrated in the official import script.%%%
Added subscriber: @bliblubli
@alain-2 did you update it for 2.74? It's a little but nice addition.
Added subscriber: @BrendonMurphy
Changed status from 'Open' to: 'Archived'
Archiving, op 3 years old, no resolution here.
@alain-2 feel free to create a fresh task if this patch is updated & still valid
Added subscriber: @dimumurray
Any chance we'll see this feature fully integrated into the Import-Export OBJ format add-on?
Added subscriber: @Dimitar
Any updates on this? I find it quite important to be able to assign existing materials with materials matching the same name from an imported obj
I have a little hack that I have been using to remove duplicate materials:
I've implement a few lines to "use existing" Material again.
People still ask me to modifiy the Script to implement that time saving function:
init.py
import_obj.py
Can some Prodevelopper please test it ?
Would be great to implement that to trunk forever :-D