sebkaine Posted November 19, 2015 Share Posted November 19, 2015 (edited) Hi Guys, I would like to know if it's possible to edit VEX / Python code located in inline / snippet directly in sublime. I have setup my EDITOR var correctly : http://forums.odforce.net/topic/8758-external-text-editor-for-scripting/ but at the moment when i do Alt+E the code is open in the Script Editor, and then i need to redo a Alt+E or click on External Editor to open the code in Sublime. That's a 2 step process and it's start to be boring ... How would you proceed to ditch 100% the script editor, so when i do a Alt+E the code is directly open in Sublime ? Thanks for your time. Cheers E ps : sorry for the wrong section , after double thinking this one is definitly a scripting question Edited November 19, 2015 by sebkaine Quote Link to comment Share on other sites More sharing options...
sebkaine Posted November 20, 2015 Author Share Posted November 20, 2015 (edited) anyone ? Does i must conclude it's impossible at the moment to replace directly the script editor by an external one ? Edited November 20, 2015 by sebkaine Quote Link to comment Share on other sites More sharing options...
br1 Posted November 20, 2015 Share Posted November 20, 2015 I usually do alt+e e Quickly typing both "e" one after the other. Not the best solution I guess, but it opens up sublime together with the expression editor at nearly the same time. Quote Link to comment Share on other sites More sharing options...
sebkaine Posted November 20, 2015 Author Share Posted November 20, 2015 Nice trick Bruno ! that is still optimization ! And you kinda confirm that there are no workaround ... Thanks ! Quote Link to comment Share on other sites More sharing options...
br1 Posted November 20, 2015 Share Posted November 20, 2015 (edited) I did a bit more digging, someone (Arthur Yidi) actually made a plugin to handle it as you can read in that thread : http://forums.odforce.net/topic/8758-external-text-editor-for-scripting/page-2 It works well at least with Houdini 14 (havn't tried in 15 yet), you can map the external editor to any hotkey (I used Ctrl+E) and it goes straight to your external editor, without opening the expression editor. link to the plugin : https://github.com/ArthurYidi/Houdini-External-Editor Much better solution ! Edited November 20, 2015 by br1 Quote Link to comment Share on other sites More sharing options...
sebkaine Posted November 20, 2015 Author Share Posted November 20, 2015 (edited) Thanks Bruno ! unfortunatly i've already try this one, and it's doesn't look to work under windows 10 + H indie 14. - i have put the 2 .xml in C:\Users\admin\Documents\houdini14.0 - i have activated sublime in Edit > Configure External Editor. The env var in houdini.env looks correct : VISUAL = ""C:\Program Files\Sublime Text 2\sublime_text.exe" -w" - But when i go to Edit > Hotkeys...: the only things that i have is Configure External Editor which is grey and can't be modified => the Edit in External Editor mention in the doc doesn't exist at all ? But that's good to know that it's an option under linux/mac os. Edited November 20, 2015 by sebkaine Quote Link to comment Share on other sites More sharing options...
br1 Posted November 20, 2015 Share Posted November 20, 2015 It's actually working for me with Windows (10). After installing it, do you see that option if you right click on a text field ? It took me a few tries before being able to add the shortcut, but in the end it appeared in the shortcut options, I could set it and it persisted after closing/re-opening Houdini. 1 Quote Link to comment Share on other sites More sharing options...
sebkaine Posted November 20, 2015 Author Share Posted November 20, 2015 (edited) This is great Bruno ! in fact after clicking in Expression > Edit in External Editor it does activate the option in the Hotkeys ... So now i have Sublime that open directly everywhere directly ! Thanks again for your help Bruno ! Edited November 20, 2015 by sebkaine Quote Link to comment Share on other sites More sharing options...
br1 Posted November 20, 2015 Share Posted November 20, 2015 Glad it worked for you ! It's quite useful for me as well, I can now totally skip the expression editor window ! Lot's of clicks saved ! 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.