Alexey Vanzhula Posted October 3, 2015 Share Posted October 3, 2015 (edited) Hi guys. I have some trouble with scripting a custom VEX operator. When I change VEX HDA code section manually.(from script) next node creation has no effect, just not recompiled. So how to recompile this HDA with script after changing code section? I need something like 'Apply' button (that recompile VEX source) from Type Properties similar behaviour,but from python script. Any chance? Edited October 3, 2015 by Alexey Vanzhula Quote Link to comment Share on other sites More sharing options...
Atom Posted October 6, 2015 Share Posted October 6, 2015 Have you tried setting the first input to nothing, then re-establishing the connection to force and update? Maybe disconnect the node, set your code, then re-connect it? code_node.setFirstInput(upstream_node) Just brainstorming here... Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted October 6, 2015 Share Posted October 6, 2015 What you are using as custom VEX operator? AttributeWrangle? Something other? AttributeWrangle is a wrapper around AttributeVOP with Snipped VOP inside, which have ForceCompile button on its interface. Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted October 7, 2015 Author Share Posted October 7, 2015 What you are using as custom VEX operator? AttributeWrangle? Something other? AttributeWrangle is a wrapper around AttributeVOP with Snipped VOP inside, which have ForceCompile button on its interface. It is custom VEX Geometry HDA Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted October 7, 2015 Share Posted October 7, 2015 How you created it? There are multiple ways to create VEX operator in Houdini. Custom tells me nothing. Every way is custom. Did you created it thru File => New Operator Type => Geometry Operator and then wrapped it in your HDA? Did you wrapped (again) AttributeWrangle? Did you wrapped AttributeVOP? Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted October 7, 2015 Author Share Posted October 7, 2015 http://i.imgur.com/hAALgR2.png Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted October 7, 2015 Share Posted October 7, 2015 (edited) Reload Vex Functions doesn't work? BTW. I would stay away from this method of creating Geometry Operator because it doesn't use CVEX and works only on points. You will be limited to old syntax and probably no possibility to create geometry. Edited October 7, 2015 by fântastîque Mântragorîè Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted October 8, 2015 Author Share Posted October 8, 2015 (edited) Reload Vex Functions doesn't work? No One guy, not me, need it for his external PySide editor that works with VEX syntax Edited October 8, 2015 by Alexey Vanzhula Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted October 8, 2015 Share Posted October 8, 2015 (edited) One guy, not me, need it for his external PySide editor that works with VEX syntax And this, not you, guy name is yexelA aluhznaV? I don't get it, external PySide editor? WTF? We need more info. Edited October 8, 2015 by fântastîque Mântragorîè Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted October 8, 2015 Author Share Posted October 8, 2015 I don't get it, external PySide editor? WTF? We need more info. http://www.paulwinex.ru/vex-editor-v1-0/ Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted October 9, 2015 Share Posted October 9, 2015 Why he needs VEX operator to be created this way, instead of using Wrangle nodes? Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted October 9, 2015 Author Share Posted October 9, 2015 Just for full featured code controling. For example quick recreation of paramters in legacy VEX HDA from his editor. With Wrangle nodes and other code sections he hasn't problems ) Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted October 9, 2015 Share Posted October 9, 2015 Maybe he is using wrong method to call "Reload Vex Functions"? Did he called hou.Parm.pressButton()? Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted October 9, 2015 Author Share Posted October 9, 2015 We tried all HOM techniques Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted October 9, 2015 Share Posted October 9, 2015 OK, let make this straight. When you want to have this option to force compile available? On Asset UI? When you have Type Properties open? and you edit code there you want to know how to force Accept button? Explain more because for me hou.Parm.pressButton() on "Reload Vex Functions" works, and once I change code in my include file it does recompile operator. 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.