View previous topic :: View next topic |
Author |
Message |
chronozphere DeleD PRO user
Joined: 20 Jun 2006 Posts: 1010 Location: Netherlands
|
Posted: Sat Aug 08, 2009 9:59 pm Post subject: Let a plugin delete an object from the scene |
|
|
Hey guys
Is it possible to make a plugin delete an object from the scene? I would like to know this because I'm going to use DeleD as a world editor for a game project. I'm going to make a plugin for this and I would like it to have this functionality. Is it possible?
Thanks |
|
Back to top |
|
|
paul_nicholls DeleD PRO user
Joined: 05 Dec 2007 Posts: 356 Location: Hobart, Tasmania, Australia
|
Posted: Sun Aug 09, 2009 2:21 am Post subject: Re: Let a plugin delete an object from the scene |
|
|
chronozphere wrote: |
Hey guys
Is it possible to make a plugin delete an object from the scene? I would like to know this because I'm going to use DeleD as a world editor for a game project. I'm going to make a plugin for this and I would like it to have this functionality. Is it possible?
Thanks |
Hi chronozphere,
as far as I know, the only way to delete a DeleD object is to remove it from the scene and send the scene back to DeleD...
cheers,
Paul _________________ Long live DeleD!
Hi ho...hi ho...it's off 3d modeling I go... |
|
Back to top |
|
|
chronozphere DeleD PRO user
Joined: 20 Jun 2006 Posts: 1010 Location: Netherlands
|
Posted: Sun Aug 16, 2009 9:47 am Post subject: |
|
|
I've tried several times now, but I can't make my plugin delete objects from the scene.
I've tried this to clear the scene:
Code: |
<scene version="1.6">
<primitives highestID="0">
</primitives>
</scene>
|
But it didn't have any effect.
This is what i send to DeleD:
Code: |
<scene version="1.6">
<primitives>
<primitive id="1" name="deleted" type="cylinder" visible="false" snap="none" autoUV="false" groupID="-1" skeletonID="-1" />
</primitives>
</scene>
|
This is what i get in the DXS file:
Code: |
<primitive id="1" name="deleted" type="cylinder" visible="false" snap="none" autoUV="false" groupID="-1" skeletonID="-1">
<vertices />
<polygons />
</primitive>
|
If this is possible at all, I'd love to know how to do this. If its not possible, could you please add this to DeleD?
Thanks alot. |
|
Back to top |
|
|
|