relink lost 3D objects

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

relink lost 3D objects

Post by ulrik »

I modified Crashcore's "Relink lost images" script a bit and made it work for 3d objects, I used the script "ObjectSource" to get the information I needed to make it work.
I tested it with AS Pro 6 on my mac osx leopard machine and so far it seems to work fine, if you would like to test it here it is:
http://www.musikboden.se/asfiles/ub_rel ... bjects.lua
webshark2000
Posts: 5
Joined: Fri Aug 07, 2009 3:04 am

Post by webshark2000 »

Do you know of a script for Mac that does this? This one works great on PC, but when we tired to use it for Mac it won't let you select the .obj files.

Thanks.
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

webshark2000 wrote:Do you know of a script for Mac that does this? This one works great on PC, but when we tired to use it for Mac it won't let you select the .obj files.

Thanks.
That's strange, it works for me on leopard 10.5.8 on a ppc g5, what os do you run and what version of AS?
webshark2000
Posts: 5
Joined: Fri Aug 07, 2009 3:04 am

Post by webshark2000 »

10.5.7 I'll try updating the OS and see if that fixes it.

Thanks.
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

It worked when I used 10.5.7 as well, must be something different, do you try to relink the .obj files, and they are greyed out?
webshark2000
Posts: 5
Joined: Fri Aug 07, 2009 3:04 am

Post by webshark2000 »

Yes, it won't let me select them.
rogermate
Posts: 298
Joined: Mon Jun 02, 2008 5:53 am
Location: Mars

Re: relink lost 3D objects

Post by rogermate »

ulrik wrote:I modified Crashcore's "Relink lost images" script a bit and made it work for 3d objects, I used the script "ObjectSource" to get the information I needed to make it work.
I tested it with AS Pro 6 on my mac osx leopard machine and so far it seems to work fine, if you would like to test it here it is:
http://www.musikboden.se/asfiles/ub_rel ... bjects.lua
Worked for me on Windows.

Now just to summarize. The purpose of this menu script is to update the currently open .anme file as to the location of the .obj files. This is needed when either the .anme or the .obj change position in the file system.

It seems you only need to point to any file in the same folder, than any missing .obj file that exists in that folder will be relinked.

Thanks Ulrik.
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

I'm glad it worked on windows too. :D
Post Reply