-
Content count
490 -
Donations
0.00 CAD -
Joined
-
Last visited
-
Days Won
7
Everything posted by Alexey Vanzhula
-
thanx
-
Hm... I tried deleteAllKeyframes but it also disconnects parms from selectors in sops
-
How to get mouse coordinates in the viewport?
Alexey Vanzhula replied to Storm Keeper's topic in Scripting
Good offer -
How to get mouse coordinates in the viewport?
Alexey Vanzhula replied to Storm Keeper's topic in Scripting
Yes. Why? Maybe because it doesn`t selecting when you clicking - it is only for dragging -
I can find primitive under the mouse with MouseCHOP. Now i wat to find closest point at this primitive. The problem is that nearpoint expression function return near point to viewport plane. As the result I can find valid point number in flat grid and via one of ortho views. How to properly find closest point ? I have to consider direction (in my code) returned by mapToWorld. But How ? import hou, toolutils cur_viewport = toolutils.sceneViewer().curViewport() # CURRENT VIEWPORT mx, my = hou.evalParmTuple("/obj/geo1/dm1/core/mouse") # THIS IS PATH TO MOUSE-CHOP vx, vy = v.mapFromMouseChop(mx,my) # GET VIEWPORT COORDINATES direction, position =v.mapToWorld(vx,vy) # CONVERT VIEWPORT TO WORLD COORDINATES node = cur_viewport.queryNodeAtPixel(vx, vy) # NODE AT WORLD COORDINATES if node is not None: prim = v.queryPrimAtPixel( node, vx, vy ) # PRIM AT WORLD COORDINATES hou.hscriptExpression( 'nearpoint("{}",{},{},{})'.format(node.path(), position[0], position[1], position[2]) ) # POINT NUMBER
-
Thanx, i`ll try it
-
How to get mouse coordinates in the viewport?
Alexey Vanzhula replied to Storm Keeper's topic in Scripting
Dmitry Shurov look at this simple example:http://youtu.be/L7i0AaezN-4 -
How to get mouse coordinates in the viewport?
Alexey Vanzhula replied to Storm Keeper's topic in Scripting
When your tool is active, you can temporary create CHOP subnet with MouseCHOP inside and work with mapFromMouseChop. Also you can hide subnet node when tool is active. -
External Editors for editing python scripts
Alexey Vanzhula replied to strages's topic in General Houdini Questions
And you are right. reloading module is a fastest way -
External Editors for editing python scripts
Alexey Vanzhula replied to strages's topic in General Houdini Questions
what about 5-10 lines of python expression. i need to create file with module for this? -
External Editors for editing python scripts
Alexey Vanzhula replied to strages's topic in General Houdini Questions
Not so difficult. for me it is: 1. focus code field 2. alt+e twice 3. edit code 4. ctrl+w+enter 5. click on accept button in internal editor strages It doesn`t work with sublime 3, but it works with sublime 2 -
it seems to me that it is impossible with python
-
No one:) But maya has better class\members description
-
AND WELL DOCUMENTED HDK
-
Hscript expressions a bit faster than python expressions. But Python more powerful
-
Working in one context to modify geometry, like animation with expressions, VEX, etc in SOP context. Just modify geometry shape with time in one place (all nodes on a look). For this purpose it isn't obligatory to move dynamic operations to separate container, especially for not very large sims.
-
Tweak-like state with preselection highlighting of components would be good. eXSI users i think you need it
-
highlight geometry component under the mouse
Alexey Vanzhula posted a topic in HDK : Houdini Development Kit
I have 2 HDK questions: 1. how to get primitive\vertex\point\edge under the mouse pointer? 2. how to highlight this component with opengl? I can only get primitive under the pointer with hou.GeometryViewport.queryPrimAtPixel and hou.GeometryViewport.mapFromMouseChop. But i need hdk solutions. There are very low info for this . I see DM_VPortAgent.singlePickObject method, but i dont understand how to work with render hooks -
highlight geometry component under the mouse
Alexey Vanzhula replied to Alexey Vanzhula's topic in HDK : Houdini Development Kit
THANK YOU VERY MUSH !!! IT WORKS !!! -
What kind of optimisations we need to modeling like this ? I think we simply need custom state(s) in Houdini. IMO the speed of viewport is good for this kind of operations.
-
highlight geometry component under the mouse
Alexey Vanzhula replied to Alexey Vanzhula's topic in HDK : Houdini Development Kit
Whether someone can build MSS_CustomBrushState HDK example in Linux ? I tried gcc-4.8.2 and gcc-4.6.4. All examples builds normally and work, except several custom state examples. I so much need to deal with it Thanx... -
highlight geometry component under the mouse
Alexey Vanzhula replied to Alexey Vanzhula's topic in HDK : Houdini Development Kit
Help me please http://youtu.be/fMBiz-APzHQ What im doing wrong ? -
highlight geometry component under the mouse
Alexey Vanzhula replied to Alexey Vanzhula's topic in HDK : Houdini Development Kit
Flatten sop example works well -
highlight geometry component under the mouse
Alexey Vanzhula replied to Alexey Vanzhula's topic in HDK : Houdini Development Kit
11003: Fatal error: Segmentation fault (sent by pid 0) Saving application data to /tmp/crash.untitled.alexey_11003.hip Crash log saved to /tmp/crash.untitled.alexey_11003_log.txt Warning: Missing charsets in String to FontSet conversion it is with custom HOUDINI_UI_APP_PATH var. After i seted it error with ui file was gone -
highlight geometry component under the mouse
Alexey Vanzhula replied to Alexey Vanzhula's topic in HDK : Houdini Development Kit
At now id dont think that it is problem with ui file but it also crash with this log: Crash report from alexey; Houdini FX Version 13.0.338 [linux-x86_64-gcc4.6] Traceback from Sun Mar 2 20:10:43 2014 Caught signal 11 AP_Interface::coreDumpChaser(UTsignalHandlerArg) <libHoudiniUI.so> AP_Interface::si_CrashHandler::chaser(UTsignalHandlerArg) <libHoudiniUI.so> signalCallback(UTsignalHandlerArg) <libHoudiniUT.so> UT_Signal::UT_ComboSignalHandler::operator()(int, siginfo*, void*) const <libHoudiniUT.so> UT_Signal::processSignal(int, siginfo*, void*) <libHoudiniUT.so> killpg <libc.so.6> PI_ResourceManager::getBindingSelectors(OP_Operator*) const <libHoudiniPRM.so> MSS_SingleOpState::findNextParmWithSelector(int) const <libHoudiniAPPS3.so> MSS_SingleOpState::handleSelectorDone(UI_Event*) <libHoudiniAPPS3.so> BM_SingleOpState::generate(BM_SimpleState::BM_EntryType, bool) <libHoudiniAPPS2.so> MSS_SingleOpState::generate(BM_SimpleState::BM_EntryType, bool) <libHoudiniAPPS3.so> BM_OpStateControl::enterState(BM_State*, BM_OpStateEntry) <libHoudiniAPPS2.so> BM_OpStateControl::setCurrentState(char const*, int, BM_OpStateEntry, BM_SceneManager*) <libHoudiniAPPS2.so> HOMF_SceneViewer::setCurrentState(char const*, bool) <libHoudiniAPPS3.so> _wrap_SceneViewer_setCurrentState <_hou.so> PyEval_EvalFrameEx <libpython2.7.so.1.0> PyEval_EvalCodeEx <libpython2.7.so.1.0> PyEval_EvalFrameEx <libpython2.7.so.1.0> PyEval_EvalCodeEx <libpython2.7.so.1.0> PyEval_EvalCode <libpython2.7.so.1.0> PY_CompiledCode::evaluateUsingDicts(PY_Result::Type, void*, void*, PY_Result&) const <libHoudiniUT.so> SHLF_Tool::execute(SHLF_ExecContext const&) <libHoudiniAPPS2.so> OPUI_ToolHandler::handleToolEvent(UI_Event*) <libHoudiniAPPS2.so> UI_Queue::processNextEvent() <libHoudiniUI.so> UI_Queue::drain() <libHoudiniUI.so> UI_Queue::eventLoop() <libHoudiniUI.so> main <libHoudiniUI.so> __libc_start_main <libc.so.6> [0x1bd7] <houdinifx-bin>