Hi,
I wrote some code into OnLoaded event handler to run when I paste the HDA, something like this:
if not hou.hipFile.isLoadingHipFile():
rebuild_prompt = hou.ui.displayMessage( "Would you like to rebuild?" , ("Rebuild", "Do not Rebuild"))
It seems opening a ui dialog like this breaks the copy-pasting process and does not move the pasted node into a correct position near the cursor. I thought about manually moving the node to the cursor in the code after the dialog, but I dont think it makes sense and I cannot even access the node I am copying anyway (assume many nodes in a subnet all being copied at once)
Any idea how to have a dialog that opens when HDA is being copy-pasted but in a way that doesnt stop/break the copy-pasting itself?
Many thanks