Jump to content
Alexey Vanzhula

delete asset in on creation event

Recommended Posts

I don't know the context or why this is needed but I would never automatically delete anything outside of a digital asset, that's just asking for trouble. There are better ways, for example a switch with one of the inputs as a null.

Share this post


Link to post
Share on other sites

To have your asset to delete itself expose a button a the root and use a callback script, in python :

hou.pwd().destroy()

AutoDelete.hip

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×