Delgine 3D Tools & Content DeleD Community Edition
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Let a plugin delete an object from the scene

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Community Edition
View previous topic :: View next topic  
Author Message
chronozphere
DeleD PRO user


Joined: 20 Jun 2006
Posts: 1010
Location: Netherlands

PostPosted: Sat Aug 08, 2009 9:59 pm    Post subject: Let a plugin delete an object from the scene Reply with quote

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
View user's profile Send private message
paul_nicholls
DeleD PRO user


Joined: 05 Dec 2007
Posts: 356
Location: Hobart, Tasmania, Australia

PostPosted: Sun Aug 09, 2009 2:21 am    Post subject: Re: Let a plugin delete an object from the scene Reply with quote

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
View user's profile Send private message
chronozphere
DeleD PRO user


Joined: 20 Jun 2006
Posts: 1010
Location: Netherlands

PostPosted: Sun Aug 16, 2009 9:47 am    Post subject: Reply with quote

I've tried several times now, but I can't make my plugin delete objects from the scene. Sad

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? Smile

Thanks alot. Smile
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Community Edition All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum