PDA

View Full Version : Multiple Part to Multiple Surfaces HOW?



RedBull
12-25-2005, 11:49 PM
Does anyone know of a way to change Parts to Surfaces (globally)
I have multiple .obj files that have 200 parts that should be surfaces...

Are you telling me i have to do this manually using Surface To Parts?
As it does not even get the selected Part name to change to a surface

I'd have to manually select a single part with the surface to parts tool,
rename it to the same name as the part already has and click ok for hundreds/thousands of part names has anyone found a way to do this quicker.

I think the best i can do in LScript is to select parts and command sequence
the STP plugin, but i still have to manually name every part....

Thats just so crap, surely their is a program or plugin that could help?

Anyone?

SplineGod
12-26-2005, 05:30 AM
Have you checked flay?

RedBull
12-26-2005, 02:13 PM
Yes i searched for Selection and Parts and found nothhing useful.....
I'm simply stunned at this oversight......


It just takes tedious hassle to a new level......

Amazgingly If Newtek had of hardcoded the surface to parts plugin
that was introduced in LW8.3 (i think) to actually retrieve the selected part name, than i could write an LScript to do this....

But instead a lazy programmer, just let this plugin apply a default "Material"
to the selected part, which means if i wrote a script, it would apply "Material"
to every part name, which totally defeats the purpose....

I'm stunned that by default, there is no way to select all parts....
I wonder why implement a half-assed part system that can't be used
to any advantage in LW...... Seriously annoying.

I'm stunned! :( :thumbsdow :devil: :twak: :stop: :help:

jpaugh78
12-26-2005, 04:30 PM
Could you write a script to put each part into a seperate layer? Then write a script that makes each layer into a surface? That wouldn't be that hard to do would it? (just a crazy idea i had)

RedBull
12-27-2005, 03:49 PM
That would be annoying, but that i think could work...
It will take a lot of manual scripting, but i think that may be my best bet...


Deep Exploration, can seperate the meshes into layers,
but i would still have to rename every layer, with a thousand names...
But i may be do able to do it in Lscript as you say a little better...
Thanks, i'll let you know how it goes.

Celshader
12-27-2005, 04:10 PM
Does anyone know of a way to change Parts to Surfaces (globally)
I have multiple .obj files that have 200 parts that should be surfaces...
...
Thats just so crap, surely their is a program or plugin that could help?

LightWave 8.5 has a Parts to Surfaces utility built-in...doesn't it do what you need?
ftp://ftp.newtek.com/pub/LightWave/Tutorials/Vidz/PartSurf.mov

EDIT -- I just checked for it and it's there...Parts to Surfaces is part of LW8.5's "modelertools.p." The Surfaces to Parts plug-in is part of "xgon.p." For what it's worth.

SplineGod
12-27-2005, 09:16 PM
The parts to surfaces and surfaces to parts apparently dont do it as a batch function. With lots of parts and or surfaces it become quite a pain.
You separate meshes into layers I *think* using one of several free plugins that will breaks an object up into separate objects based on surface name but you still have the issue of giving part names. I think an lscript might be the way to go.

RedBull
12-28-2005, 01:00 PM
Yeah Surface to Parts needs to at least retrieve the selected part names.
to work effectively. Otherwise it's quite useless...
Like everything NT makes, it's quite inconsistant....

Parts to Surfaces is actually called Surface To Parts when i call it from Lscript.
and can't be given external arguments, i can only commandsequence it...

But thankyou guys and JPaugh78..... That worked!!!

My script selected all the parts, and copied them to a seperate layer
and gave them a new surface name in each layer...... (Phew!)
Which is the only way i could of done it....

So thankyou.... It worked fine on my small object tests....
However on my larger tests, it seemed to have some bugs...
I think it just me be a memory thing in LScript...
But i'll do some more tests...... But thanks as it is working.....

Celshader
12-28-2005, 01:19 PM
My script selected all the parts, and copied them to a seperate layer
and gave them a new surface name in each layer...... (Phew!)
Which is the only way i could of done it....

I am still confused. The way you describe this process, it sounds like you are processing only one object at a time.

If so...why not use Parts to Surfs? It converts all part-names to surface-names instantly, without needing to copy anything to other layers. I noticed that Parts to Surfs ignores polygon selections, so you can't restrict the conversion to only the selected geometry. That said, it sounds like you're coverting every part name into a surface name, so that behavior shouldn't be a problem.

---

Weird that Parts to Surfs would show up as Surfaces to Parts in LScript, though. What does Surfaces to Parts show up as in LScript?

RedBull
12-28-2005, 11:36 PM
I am still confused. The way you describe this process, it sounds like you are processing only one object at a time.

If so...why not use Parts to Surfs? It converts all part-names to surface-names instantly, without needing to copy anything to other layers. I noticed that Parts to Surfs ignores polygon selections, so you can't restrict the conversion to only the selected geometry. That said, it sounds like you're coverting every part name into a surface name, so that behavior shouldn't be a problem.

---

Weird that Parts to Surfs would show up as Surfaces to Parts in LScript, though. What does Surfaces to Parts show up as in LScript?

Hi Celshader!!! DOH! You are correct!

I just rescanned those two .p files, and a new Parts to Surfaces tool appeared, And this is exactly what i needed all along.....

I was amazed their was no tool to do this, and it's a surprise it took until 8.5
(i knew a new tool was introduced in i thought 8.3 for this purpose)
But when i searched my KB shortcuts and Layout, only Surface To Parts
showed up.... So i figured this was the new tool....
And surprisngly it worked in reverse.... Select a Part, hit Surface to Parts
and give it a name and it becomes a surface. But it can't do multiple parts.
(which likely led to all of the above confusion about STP and PTS)

But i just tried the Parts to Surfaces tool (8.5) and it does it automatically.
Doh! Oh well i now have an Lscript that does it too now, only it keeps the layers seperate which may be of some benefit anyway.... (i then flatten layers)

I wish the new 8.5 tool had of shown up in the menus after the 8.5 install.
Bugger! But at least it works in 2 ways now! :)
The challenge was fun, with the thanks to a few people who gave me ideas.

The Lscript name is Surface-To-Parts, i guess i got confused
that i was changing Parts to Surfaces.
**** 36 degree celcius heat, must be taking it's toll.......
I'm losing my mind..... Well more of it anyway.

But thanks for the help and clarification.....
It was unfortunate i had finished the Lscript by the time you originally posted your message, by then i was so flustered about it working or not.....

Anyway thanks to all....... I'm now much wiser on the usage of parts and surfaces, or was that surface to parts. :)