User .obj library

Plugins linking to this thread: (hide)

User OBJ LibraryAuthor: Reinhard Claus
A menu builder for a library of .obj files. As the first step, you'll have to create a folder named »ObjLib« under (UserFolder)/Data. When installed, creates a menu in Get>Primitive. Folder structure in the ObjLib will be recreated as the menu structure in Get->Primitive->User Object Library. Works for wavefront obj file format only — (Update) new version also scans all existing workgroups for Data/ObjLib submenus.

This addon is now integrated in the STL/OBJ Import/Export addon: AdditionalFileFormats.xsiaddon

User avatar
rray
Moderator
Posts: 1810
Joined: 26 Sep 2009, 13:51
Location: Bonn, Germany

User .obj library

Post by rray » 15 Dec 2010, 23:11

Here's a menu builder for a library of .obj files

As the first step, you'll have to create a folder named "ObjLib" under (UserFolder)/Data

When installed, creates a menu in Get>Primitive

Folder structure in the ObjLib will be recreated as the menu structure in Get->Primitive->User Object Library

Works for wavefront obj file format only

Editable (js) sourcecode

Happy importing :ymcowboy:
____

(Update) new version also scans all existing workgroups for Data/ObjLib submenus
(Update) new version now actually imports objs from workgroups :ymblushing:
BuildUserObjLib.zip
You do not have the required permissions to view the files attached to this post.
softimage resources section updated Sep 26th 2026

User avatar
3DTutorial
Posts: 66
Joined: 12 Sep 2009, 19:59
Location: New Jersey, USA

Re: User .obj library

Post by 3DTutorial » 15 Dec 2010, 23:44

Sweet!

Thanks so much.

Cheers,

Joe
Certified Softimage Instructor & Old Timer
Follow me on Twitter
http://twitter.com/JoeSaltzman

User avatar
rray
Moderator
Posts: 1810
Joined: 26 Sep 2009, 13:51
Location: Bonn, Germany

Re: User .obj library

Post by rray » 15 Dec 2010, 23:46

You are welcome B-)
softimage resources section updated Sep 26th 2026

User avatar
bblevins
Posts: 6
Joined: 04 Jul 2009, 11:01

Re: User .obj library

Post by bblevins » 28 Jan 2011, 02:24

This is fantastic!

Now I can have a bunch of pre UV'd primitives at the ready.

I would like to put the Objlib in a workgroup so I can have a library everyone can use. Anyway to do that?

User avatar
Magog
Posts: 48
Joined: 06 Jul 2009, 15:37
Skype: e-Magog

Re: User .obj library

Post by Magog » 28 Jan 2011, 10:35

TNX!!!!!!!!! ^:)^

Wonderful!!! \m/

User avatar
rray
Moderator
Posts: 1810
Joined: 26 Sep 2009, 13:51
Location: Bonn, Germany

Re: User .obj library

Post by rray » 28 Jan 2011, 18:07

Thanks for your feedback :-!
bblevins, that was a good idea.
New version now scans all connected workgroups, and puts everything found under Data/ObjLib in these into the menu as well.
Above link is updated.
softimage resources section updated Sep 26th 2026

User avatar
origin
Posts: 619
Joined: 09 Jun 2009, 09:59
Location: warsaw

Re: User .obj library

Post by origin » 28 Jan 2011, 21:20

Thanks, this will be handy.
[download doesn't work here]

User avatar
Hirazi Blue
Administrator
Posts: 5113
Joined: 04 Jun 2009, 10:15

Re: User .obj library

Post by Hirazi Blue » 28 Jan 2011, 21:29

Try this one (from rray.de directly) ;)
Stay safe, sane & healthy!

User avatar
bblevins
Posts: 6
Joined: 04 Jul 2009, 11:01

Re: User .obj library

Post by bblevins » 02 Feb 2011, 04:15

Thanks for implementing the Workgroup option. Sadly, I get an error when I run it...

Code: Select all

// ERROR : Cannot open C:\users\bblevins\Autodesk\Softimage_2011_Subscription_Advantage_Pack\Data\ObjLib\UVSphere.obj
// ERROR : 2028-ObjImport - Invalid argument specified.
ObjImport("C:\\users\\bblevins\\Autodesk\\Softimage_2011_Subscription_Advantage_Pack\\Data\\ObjLib\\UVSphere.obj", 1, 0, true, true, false, true);
// ERROR : Invalid procedure call or argument - [line 53 in \\Wild.canary.media\tech\WC_workgroup\Addons\BuildUserObjLib\Application\Plugins\BuildUserObjLib.js]

User avatar
rray
Moderator
Posts: 1810
Joined: 26 Sep 2009, 13:51
Location: Bonn, Germany

Re: User .obj library

Post by rray » 02 Feb 2011, 09:01

Thanks for the report, it seems it scans from the workgroup folder but still tries to import from the user folder. Fix coming.
softimage resources section updated Sep 26th 2026

User avatar
origin
Posts: 619
Joined: 09 Jun 2009, 09:59
Location: warsaw

Re: User .obj library

Post by origin » 02 Feb 2011, 16:13

Yes same error. I tried to fix this myself but failed :p

User avatar
rray
Moderator
Posts: 1810
Joined: 26 Sep 2009, 13:51
Location: Bonn, Germany

Re: User .obj library

Post by rray » 02 Feb 2011, 20:10

First post has been updated with a new version - this one I've actually tested for more than 15 seconds :ymblushing:.

Had to go the way of a global JS "map", since menu entries don't allow the storage of userdata. Am open to more elegant suggestions.
softimage resources section updated Sep 26th 2026

User avatar
bblevins
Posts: 6
Joined: 04 Jul 2009, 11:01

Re: User .obj library

Post by bblevins » 02 Feb 2011, 21:01

Thanks!
Your fix is working here, no problems!

Talik
Posts: 63
Joined: 09 May 2017, 09:13
Skype: nihao00042

Re: User .obj library

Post by Talik » 14 Sep 2023, 01:13

How to make this script select the mesh after import? Really need this for kitbashes

User avatar
rray
Moderator
Posts: 1810
Joined: 26 Sep 2009, 13:51
Location: Bonn, Germany

Re: User .obj library

Post by rray » 17 Sep 2023, 16:19

I couldn't find a way to select them because the importer doesn't return the imported objects to the script. But I have my own importer maybe I can adapt it. I'll come back here in case
softimage resources section updated Sep 26th 2026

User avatar
FXDude
Posts: 1145
Joined: 19 Jun 2012, 19:59

Re: User .obj library

Post by FXDude » 17 Sep 2023, 19:23

RRRAAAYYY !! :ymhug: \m/