Notifications
Clear all

[Closed] invulnerable object

Is it possible to make an object undeletable except through a script? I want to create a gizmo (Box that can be rescaled but not deleted on accident.)

3 Replies

simply… NO

unfortunatly not… get onto autodesk about it, many others have also – enough voices may lead to implementation

mark

Totally off the top of my head here, but a work around might be to simply recreate the object on deletion (via a call back or the on delete function in a scripted plugin). Could be totally wrong here…

I thought about a callback but it would have to be active ‘all day’ which would be a potential memory leak/bloat/inefficient use of system resources.

It could probably be done through the SDK. Maybe we just need to pester someone to create the invincible cube object.

My interim solution is going to be to store the gizmo dimensions and then recreate it when requested by the user. In some ways I actually like the idea of the gizmos only being created when “in the interface” so to speak anyway. Keeps the scene less bloated. When the rollout is called up I’ll create the gizmos and when the rollout is destroyed delete them. I think that might be the best compromise…