Alexey Vanzhula Posted October 23, 2012 Share Posted October 23, 2012 How to delete asset from it self. For example, i want to delete it in On Creation event script of asset Quote Link to comment Share on other sites More sharing options...
lukeiamyourfather Posted October 23, 2012 Share Posted October 23, 2012 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. Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted October 24, 2012 Author Share Posted October 24, 2012 i need to use a condition where it is possible to cancel asset creation Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted October 24, 2012 Author Share Posted October 24, 2012 and i want this condition inside asset Quote Link to comment Share on other sites More sharing options...
ben Posted October 24, 2012 Share Posted October 24, 2012 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 Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted October 24, 2012 Author Share Posted October 24, 2012 Thanx - but i dont need button manually deletion. I need asset that auto delete it self when need Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.