BAD OBJECT! NO BISCUIT!

Actually, it looks like I misunderstood the documentation. I was under the impression that I could not manipulate groups and objects until *after* they’d been added to the scene. That isn’t the case, as you’ve explained above.

It’s working now <!– s:) –><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /><!– s:) –>

-Mel Ebbles

Hehheh….if it works on dogs, it should work on 3DC objects. Or maybe not…otherwise there’s no point to this post.

Say, Richard…I can’t find a way to delete objects through scripting. I can clear them, sure…but they still loiter around in the scene smoking cigarettes and making lewd comments to passing NURBS surfaces.

The plugin I’m writing right now needs to be able to remove objects from the scene entirely, and having the user do it manually is really not an option. Any ideas?

It has to delete them because the geometry is copied, optimized, caulked, then scaled up 128x during export, and this is the point at which I need to delete the new geometry, because I don’t want 500 null objects cluttering up the scene every time a DarkBasic level is exported.

-Mel Ebbles

I was just thinking that if you needed andquot;temporaryandquot; objects you could create objects, not add them to a group.

I could probably think of something better if you gave me a more information on what you are trying to achieve.

Richard

Hmmm…yeah…

Thing is, ExportToDirectX requires a group as a parameter. I can’t access a group without using AddChild first, according to the documentation. And if I don’t add an object to the group, it won’t be exported.

I might have to forgo ExportToDirectX and do it manually….ya think? I know you provided some good source for manually writing out a DirectX file. Geesh, I wish I had thought of that sooner.

In fact, I’ll give that a whirl. It ought to work once I’ve studied the manual DirectX export code.

me.Dunce = TRUE, lol

-Mel Ebbles

I’ve added it to my list. (as a priority) But as always, I am not certain when it will be done.

If this just needs to be done during export, can you not just not export the objects in question?

Note that you can create andquot;temporaryandquot; objects for work purposes that do not actually have to be added to the scene. Until you andquot;addobjectandquot; it isn’t part of the scene.

Richard

You must be logged in to reply in this thread.

5 posts