salik Posted March 21, 2018 Share Posted March 21, 2018 (edited) Is it possible to script or something, such that whenever I dive in this particular node, it will check and set the update mode to use "Auto Update"? Many thanks in advance! Edited March 21, 2018 by salik Quote Link to comment Share on other sites More sharing options...
LaidlawFX Posted March 21, 2018 Share Posted March 21, 2018 There is no update mode for entering a context or area in a path. It also does not seem very Houdini-centric for what you are doing, I would suggest maybe tackling the issue from a different angle. What are you trying to accomplish? There may be better ways to tackle the issue. *If you really wanted to go crazy you could have a continuously running python script at launch, that detects the mouse position in the network pane, and then checks against the node path. But that would be a very dirty, dirty way of accomplishing it. Quote Link to comment Share on other sites More sharing options...
salik Posted March 21, 2018 Author Share Posted March 21, 2018 5 hours ago, LaidlawFX said: There is no update mode for entering a context or area in a path. It also does not seem very Houdini-centric for what you are doing, I would suggest maybe tackling the issue from a different angle. What are you trying to accomplish? There may be better ways to tackle the issue. *If you really wanted to go crazy you could have a continuously running python script at launch, that detects the mouse position in the network pane, and then checks against the node path. But that would be a very dirty, dirty way of accomplishing it. Hi there, in my current workplace, it requires one to set the update mode to "Auto update" when diving into this particular node. So there are times that I have forgotten about it which results me to do another round of publishing, not to mention that sometimes it requires me to reopen the file which could take some time. While it mostly rests upon user to set the mode (how hard can it be, right?), it is simply I was trying to find out if there are any other better ways to get around it. Running a script is what I can think of but I do agree with you that having a script that continuously running in the background is ideal. If not, I shall stick with 'always remember to set the mode when diving in node X' Quote Link to comment Share on other sites More sharing options...
Jesper Rahlff Posted March 21, 2018 Share Posted March 21, 2018 (edited) 14 minutes ago, salik said: So there are times that I have forgotten about it which results me to do another round of publishing why not make a copy of your publishing tool and then add a line of code before it executes the publish to set mode to "Auto Update"? maybe something like: if mode == 'Manual' hou.setUpdateMode(hou.updateMode.AutouUpdate) Edited March 21, 2018 by Jesper Rahlff Quote Link to comment Share on other sites More sharing options...
anim Posted March 22, 2018 Share Posted March 22, 2018 you should be able to do it using EventHandler and intercept ContextEvent for your HDA, or if you want globally, then do whatever you want based on the context change, which is your dive http://www.sidefx.com/docs/houdini/hom/network.html#intercepting-events-for-an-hda Quote Link to comment Share on other sites More sharing options...
salik Posted March 30, 2018 Author Share Posted March 30, 2018 On 3/21/2018 at 3:37 PM, Jesper Rahlff said: why not make a copy of your publishing tool and then add a line of code before it executes the publish to set mode to "Auto Update"? maybe something like: if mode == 'Manual' hou.setUpdateMode(hou.updateMode.AutouUpdate) Sorry for the late reply - I am aware of the above code and have been using it in other aspects for my workflow. It hits to me at the publishing stage that this issue, while minor can be easily resolve but it is not being implemented. Not to mention that at times of crunch time, when you are trying to push out everything, this can be easily missed (at least for me.) On 3/22/2018 at 1:00 AM, anim said: you should be able to do it using EventHandler and intercept ContextEvent for your HDA, or if you want globally, then do whatever you want based on the context change, which is your dive http://www.sidefx.com/docs/houdini/hom/network.html#intercepting-events-for-an-hda Thanks for the link, I will check it out and see if I can get it implemented! 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.