3D Canvas Community
3D Canvas Discussion Forums
Plug-In Development and Scripting
BAD OBJECT! NO BISCUIT!|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
Hehheh....if it works on dogs, it should work on Canvas 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 |
||
|
|
Member |
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 "temporary" objects for work purposes that do not actually have to be added to the scene. Until you "addobject" it isn't part of the scene. Richard |
|||
|
|
Member |
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 |
|||
|
|
Member |
I was just thinking that if you needed "temporary" 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 |
|||
|
|
Member |
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 -Mel Ebbles |
|||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|
3D Canvas Community
3D Canvas Discussion Forums
Plug-In Development and Scripting
BAD OBJECT! NO BISCUIT!
