PDA

View Full Version : save scene as object



CC Rider
08-18-2009, 01:36 PM
I apologize in advance, I'm almost positive I saw a thread that answered this question today but search is not working and I can't find it anywhere...
Is there a plugin or other method of saving a scene, with multiple objects which have been transformed in various ways, as a single object?

Gotta be an easy answer for this...

:help:

evolross
08-18-2009, 01:52 PM
I was wondering this too. I know you can save a single object, transformed in whatever way by doing a "Save Trans Object". But the other day, I needed to save multiple, separate transformed objects in Layout as one object and couldn't figure out how.

CC Rider
08-18-2009, 01:55 PM
Let's hope one of the LW overlords will have a solution for us!

:D

RudySchneider
08-18-2009, 05:42 PM
I'm on travel (and forgot my dongle, darnit), and maybe this'll go nowhere, but have you tried selecting all of the objects you want to save in scene mode (by using "Current Item: Objects" tab window and multi-selecting objects) and then saving as transformed? I can select multiple objects, and Save Transformed is available (not grayed -out), but since I don't have my dongle, I'm in Discovery mode, and Layout won't let me save anything.

CC Rider
08-18-2009, 07:23 PM
Actually I did try that but it only saved 1 (I suppose the first object I selected) all by itself...

This can't be an isolated need can it?

probiner
08-18-2009, 09:43 PM
http://flay.com/ or http://www.lwplugindb.com always good places to get this kind of answers :)

Found 2 that do the job well. One faster, other with more control options.

cp_SaveTransformed - http://www.lwplugindb.com/Plugin.aspx?id=aa1cc4c4
A fast Lscript that saves an Endomorph of all objects into a new file.

Scene2Modeler - http://www.lwplugindb.com/Plugin.aspx?id=007c8b36
Consists in 2 plugs. In layout activate scene2modeler.lsc (It will open modeler so have it closed) and in modeler activate importfromlayout.lsc
You can select wich objects are to be used and also put them into separate layers like they are in Layout.



By the way im preety thick when it comes to MDD, never used them, but couldnt you pick a frame of a MDD to modeler? Are them per object?


Cheers

daforum
08-19-2009, 04:59 AM
Probiner, i had a look for the cp_SavTransformed script and it doesn't seem to be there on the linked website. Do you have a copy of it as it would be very useful?

probiner
08-19-2009, 05:21 AM
In the Page look for MorphSaver (middle).

Cheers

PS: Some cool plugins there =)

CC Rider
08-19-2009, 06:50 AM
I looked at Flay before i posted, but didn't find anything...probably couldn't think of the right search words to use...

Thanks for tips...I'll give these a try
Scene2Modeler looks to be what i need.

I'll report back after testing.

Thanks!

:thumbsup:

CC Rider
08-19-2009, 10:42 AM
Not quite what I was hoping for, but with cp_savetransformed I was able to accomplish what I needed to do anyway with a couple of extra steps...

Thanks for the help!

Kaiten
09-16-2010, 08:20 AM
I know this threads been quiet for a while but thought it might be worth mentioning if any one is looking for an answer to this issue.

MG_Save_Transformed

Seems to be the most solid script so far. Export selected objects from layout with one script then import to one object in Modeller with an other.

Cheers to Mike Green :beerchug:

CC Rider
09-16-2010, 08:58 AM
Thanks Kaiten,
Where do I find this script? I'm not seeing it in the standard LW installed plugins...

nickdigital
09-16-2010, 09:24 AM
Thanks Kaiten,
Where do I find this script? I'm not seeing it in the standard LW installed plugins...

It's not a standard LW script. You need to get it from here:
http://www.mikegreen.name/Lscripts.html

I've used Scene2Modeler before and it works great too.

Svenart
09-16-2010, 09:25 AM
you can try my scene2modeler script:

http://svenart.de/lscripts.htm

CC Rider
09-16-2010, 09:36 AM
Svenart,

Does your script save current transformed/morphed states as well?

Thanks to all you guys, this is a big help!

Chris

Svenart
09-16-2010, 04:17 PM
yes, the script can save all models as transformed.

Argentus
09-17-2010, 01:19 PM
I was looking for the same thing. Great plug-in! I was dreading exporting 100s of positioned objects one at a time for UV baking. Do you have some where to make a donation for your time creating the plug-in? Thanks Sven!

3dWannabe
09-17-2010, 07:48 PM
Svenart,

Does your script save current transformed/morphed states as well?

Thanks to all you guys, this is a big help!

Chris

Here's a thread where I was able to use svenart's excellent Scene2Modeler (Yaaaay! great plug-in, thanks!) and what I did to get over a few other issues:

http://www.newtek.com/forums/showthread.php?t=106239&highlight=scene2modeler

jeric_synergy
09-21-2010, 03:18 PM
Man, I been up one side and down the other on this issue today.

Scripters, PLEASE be a little more complete in your dox, they're very confusing when you're new to a script. <|^(
:bangwall:
++
cp_SaveTransformed worked, although it did not consolidate, AND it happened that the objects saved were parented to a null, and when reloaded were not parented to that null again. Dang. So close! (Although I actually need the consolidation feature too.....)

xchrisx
09-21-2010, 04:57 PM
For adding documentation, I can understand your frustration not knowing exactly how to use a plugin however I just want to reiterate what I put in another thread a long time ago. Usually the scripts I made were the result of needing something done fast in production. Afterwards, if I think it could be useful to other people I toss it up on my site to share. I usually don't have the time or energy to go through all of my scripts and document them step by step so that is why I have very little documentation for them. Possibly in the future I will do some video tutorial or something for them, but for the time being I just don't have the time.

As for the parenting thing. The reason why I never implemented a feature to re-parent everything is that by doing so it would defeat the purpose of saving transformed. If an item got saved in its current position and then got re-parented, it would be offset from its position.

As for the whole scene to object thing, most scripter's hands are tied by Lscripts functionality so it is not an easy thing to accomplish. That is why there is essentially always a layout script and a modeler script to get accomplish this task.

jeric_synergy
09-21-2010, 05:50 PM
For adding documentation, I can understand your frustration not knowing exactly how to use a plugin however I just want to reiterate what I put in another thread a long time ago. Usually the scripts I made were the result of needing something done fast in production. Afterwards, if I think it could be useful to other people I toss it up on my site to share.
I can certainly understand that. I was just whinging out of control...
In fact, the script I was having trouble with had perfectly clear dox, BUT they were inside the script. It didn't occur to me to look in there: I'm so used to LSC and *.P where you can't.

As for the parenting thing. The reason why I never implemented a feature to re-parent everything is that by doing so it would defeat the purpose of saving transformed. If an item got saved in its current position and then got re-parented, it would be offset from its position.
Makes sense.

As for the whole scene to object thing, most scripter's hands are tied by Lscripts functionality so it is not an easy thing to accomplish. That is why there is essentially always a layout script and a modeler script to get accomplish this task.
Reiner Schug's version of this (OneClick2Objects.ls (http://www.interialabs.de/lw/lscript/index.html)) requires that users install some kind of communication script in Modeler and alter the LWM9.CFG, but once that is done, it handles the whole thing in one go.

Anyway, sorry about the whinging...... ;D:oye:

EDIT: in this case, the parenting was just an organizational thing using MakeGroups or similar...

erikals
10-22-2010, 02:02 PM
Man, I been up one side and down the other on this issue today.

Scripters, PLEASE be a little more complete in your dox, they're very confusing when you're new to a script. <|^(
:bangwall:
++
cp_SaveTransformed worked, although it did not consolidate, AND it happened that the objects saved were parented to a null, and when reloaded were not parented to that null again. Dang. So close! (Although I actually need the consolidation feature too.....)

comfort... :]
http://www.youtube.com/watch?v=Y7yDUttDPLA

plugin location, http://www.mikegreen.name/

 

erikals
10-22-2010, 02:08 PM
 
fixing the pivot positions...
http://www.youtube.com/watch?v=EcFeTTMeups

 

khan973
05-12-2012, 11:44 PM
U just use the older version of Scene2Modeler which works perfectly. I didn't have any luck with the last one.

erikals
05-13-2012, 09:57 AM
 
Layout objects to Modeler
using fbx / collada

http://youtu.be/ppB3XmGn0oE

 

jeric_synergy
05-14-2012, 07:59 AM
yes, the script can save all models as transformed.
I'm attempting to use Scene2Modeler in conjunction with Voodoo tracker.

Voodoo generates a field of null objects that I'd like to get into Modeler. These are 1500 single points, no polys.

I'd like for them to appear in Modeler in one layer.

While Scene2Modeler seems to do something (it generates its temporary file), it doesn't work with these nulls. I suspect that the lack of actually polys, even 1 point polys, is confusing Scene2Modeler.

It'd be great if Sven could patch Scene2Modeler to work with zero-poly nulls (if that's the issue).
ATTACHED is the scene.
+++

EDIT: evenflcw's "ef_Item_to_OBJ" locks up LW11 when 1000 items are selected. FWIW, I think Layout is locking up, when I select 1500 nulls and try to use the file dialog.

EDIT2: nope, "ef_Item_to_OBJ" works fine. I think it was the usual thing that LW didn't "like" a plugin until it was relaunched. Or maybe I'd just been using it and it became unstable.

pekka varis
09-27-2016, 04:42 AM
I cannot find this anymore:
https://www.lightwave3d.com/assets/plugins/entry/scene2modeler/

The other script "cp_savetransformed" gives an error when I try to install it to lightwave layout 2015

How do you do this it at 2016? Nobody does not need this feature anymore?

erikals
09-27-2016, 04:50 AM
hi, check my post


 
Layout objects to Modeler
using fbx / collada


http://youtu.be/ppB3XmGn0oE

 

pekka varis
09-27-2016, 05:01 AM
Thanks!
MG save selected transformed V 01 is a plugin right? Now I use this method I just found:

you can also use "save transformed object" on each of the objects in layout. that will save the objects with the same position/rotation as they are in layout. after u've done that you can just use "load into layer"(or load them one by one manually) in modeler.
it can be a boring process if you have lots of objects. but it sounds simplier than the process you described.

erikals
09-27-2016, 05:23 AM
:)  yes, the Modeler <> Layout 'workflow' ain't always that great  :)

the MG save selected transformed plugin (script) should work fine i think.

true "save transformed" is alright, but not on many objects, for that, use the Fbx route or such.

pekka varis
09-27-2016, 05:55 AM
Thanks man for you awesome help!

I managed to do it fine now with native tools, no plugins needed. But if I need more now I know this MG save selected transformed is there for me..

erikals
09-27-2016, 07:29 AM
happy to help out  :hey:

daforum
09-27-2016, 08:42 AM
These might be old plugins but they will work too:
https://www.lightwave3d.com/assets/plugins/entry/load-objects-from-scene/

and:
https://www.lightwave3d.com/assets/plugins/entry/one-click-scene-to-object/

I know the dstorm one works as I used to use it. It takes all object layers where-ever they are positioned, rotated, scaled etc in Layout and loads them in to Modeler in one layer, save and they become 1 object.
The more objects in the scene the longer they take to load in to modeler.