Ramp parameter support!

   15033   32   3
User Avatar
Member
373 posts
Joined: March 2009
Offline
No prob! Thanks for being so responsive.
Ian Farnsworth
User Avatar
Member
373 posts
Joined: March 2009
Offline
https://www.youtube.com/watch?v=AXwGVXD7qEQ [youtube.com] So far so good! Thanks!
Ian Farnsworth
User Avatar
Member
818 posts
Joined: Sept. 2013
Offline
lol Nice! Was the crash when you opened an old scene also fixed?
Andrew / アンドリュー
User Avatar
Member
373 posts
Joined: March 2009
Offline
Yup! The old interface (no ramps) is still there until I click to reload the asset, but otherwise it's working great.
Ian Farnsworth
User Avatar
Member
45 posts
Joined: Nov. 2018
Offline
Hey Andrew,

Not sure if it's related to ramps or not, but my scene is crashing when I try to rebuild the asset in new Houdini version 14.0.403.
The old scene was created in 14.0.386.

Any thoughts?
We really need it to work stable without crashes when we switch from one Houdini version to another going forward.

Thanks a lot for your support!
Alex



** glibc detected *** /mnt/software/maya/linux/maya2014ext1sp2/bin/maya.bin: malloc(): memory corruption: 0x0000000019f8e620 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x760e6)
/lib64/libc.so.6(+0x79b64)
/lib64/libc.so.6(__libc_malloc+0x71)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libFoundation.so(_ZN9TobjArray13allocateArrayEj+0x58)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libFoundation.so(_ZN9TobjArray11expandArrayEj+0xff)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libFoundation.so(_ZN9TobjArray19changeLogicalSizeToEj+0x2e)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libDependEngine.so(_ZNK11TdataHandlecv5TdataEv+0x5c5)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libDependEngine.so(_ZN13TmsgPlugValue4sendEv+0x37)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libDependEngine.so(_ZN13THnodeAndAttr4doItER10TDGcommand+0x17f)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libDependEngine.so(_ZN10TDGcommand8doSomeDGEj+0x69)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libDependEngine.so(_ZN10TDGcommand4doDGEv+0x45)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libOpenMaya.so(_ZN11MDGModifier4doItEv+0x32)
/mnt/software/houdini/hfs14.0.403/engine/maya/maya2014/plug-ins/houdiniEngine.so(_ZN13SyncAttribute4doItEv+0x892)
/mnt/software/houdini/hfs14.0.403/engine/maya/maya2014/plug-ins/houdiniEngine.so(_ZN19AssetSubCommandSync4doItEv+0xa4)
/mnt/software/houdini/hfs14.0.403/engine/maya/maya2014/plug-ins/houdiniEngine.so(_ZN12AssetCommand4doItERK8MArgList+0x5d)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libOpenMaya.so(_ZN15THcommandObject4doItER8TargList+0x8b)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libCommandEngine.so(_ZN12TmetaCommand9doCommandER8TargList+0x61)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libCommandEngine.so(_Z20Mel_Command_DispatchP7SphNode+0x1b9)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libCommandEngine.so(f_function_entry_node+0x925)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libCommandEngine.so(node_exec+0x5e)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libCommandEngine.so(sophia_call_executable+0x6f)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libCommandEngine.so(_ZN16SophiaExecutable8evaluateEPv+0x7e)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libCommandEngine.so(_ZN14TcommandEngine14executeCommandERK7TstringbbP13TmelCmdResultj+0x574)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libExtensionLayer.so(_ZN13TscriptAction7executeERK6TeventPP18TinterpreterResult+0x53f)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libExtensionLayer.so(_ZN13TscriptAction4doItERK6Tevent+0xb)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libExtensionLayer.so(_ZN20TcontrolScriptAction4doItERK6Tevent+0x86)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libExtensionLayer.so(_ZN7Taction13performActionERK6TeventPKc+0x9d)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libExtensionLayer.so(_ZN7Taction4doItEv+0x3b)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x488)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtGui.so.4(_ZN15QAbstractButton7clickedEb+0x32)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtGui.so.4(+0x5f04fb)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtGui.so.4(+0x5f1a55)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtGui.so.4(_ZN15QAbstractButton17mouseReleaseEventEP11QMouseEvent+0x7b)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0xc07)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtGui.so.4(_ZN15QAbstractButton5eventEP6QEvent+0x55)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtGui.so.4(_ZN11QPushButton5eventEP6QEvent+0x3d)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xae)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x1a11)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libExtensionLayer.so(_ZN16QmayaApplication6notifyEP7QObjectP6QEvent+0xb3)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x83)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb+0x136)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtGui.so.4(+0x27a054)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x723)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtGui.so.4(+0x2a4122)
/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x1f2)
/lib64/libglib-2.0.so.0(+0x44c98)
/lib64/libglib-2.0.so.0(g_main_context_iteration+0x6c)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x65)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtGui.so.4(+0x2a3c6f)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x35)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x128)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xb9)
/mnt/software/maya/linux/maya2014ext1sp2/lib/libExtensionLayer.so(_ZN12Tapplication5startEv+0x22b)
/mnt/software/maya/linux/maya2014ext1sp2/bin/maya.bin
/mnt/software/maya/linux/maya2014ext1sp2/bin/maya.bin(main+0x71)
/lib64/libc.so.6(__libc_start_main+0xfd)
/mnt/software/maya/linux/maya2014ext1sp2/bin/maya.bin
======= Memory map: ========
00400000-0056a000 r-xp 00000000 00:15 8525872 /mnt/software/maya/linux/maya2014ext1sp2/bin/maya.bin
0076a000-0076c000 rw-p 0016a000 00:15 8525872 /mnt/software/maya/linux/maya2014ext1sp2/bin/maya.bin
022e0000-253ea000 rw-p 00000000 00:00 0
40203000-4033d000 rw-p 00000000 00:00 0
4098c000-40a29000 rw-p 00000000 00:00 0
40d35000-40dd2000 rw-p 00000000 00:00 0
41160000-41162000 r-xs 00000000 08:04 2097351 /tmp/gl9Qco7r (deleted)
41869000-41906000 rw-p 00000000 00:00 0
41aa8000-41b45000 rw-p 00000000 00:00 0
41b59000-41bf6000 rw-p 00000000 00:00 0
7f506f9b3000-7f506f9f9000 rw-p 00000000 00:05 3844 /dev/zero
7f506f9f9000-7f506fde7000 rw-s 00000000 00:04 160661573 /SYSV00000000 (deleted)
7f506fde7000-7f506ff8e000 rw-s 00000000 00:04 160628804 /SYSV00000000 (deleted)
7f506ff8e000-7f506ffeb000 rw-s 00000000 00:04 160596035 /SYSV00000000 (deleted)
7f506ffeb000-7f5070083000 r–p 00000000 08:04 10882043 /usr/share/fonts/dejavu/DejaVuSans.ttf
7f5070083000-7f507010f000 r–p 00000000 08:04 10882039 /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf
7f507010f000-7f507023c000 rw-p 00000000 00:05 3844 /dev/zero
7f507023c000-7f50702d3000 rw-p 00000000 00:05 3844 /dev/zero
7f50702e4000-7f507031d000 rw-p 00000000 00:05 3844 /dev/zero
7f507031d000-7f5070342000 rw-p 00000000 00:05 3844 /dev/zero
7f5070342000-7f5070442000 rw-s 193249000 00:05 7755 /dev/nvidia0
7f5070442000-7f5070842000 rw-s 24c921000 00:05 7755 /dev/nvidia0
7f5070842000-7f5070856000 rw-p 00000000 00:05 3844 /dev/zero
7f5070856000-7f507086a000 rw-p 00000000 00:05 3844 /dev/zero
7f507086a000-7f507087c000 rw-p 00000000 00:05 3844 /dev/zero
7f507087c000-7f50708b1000 rw-p 00000000 00:05 3844 /dev/zero
7f50708b1000-7f50708e6000 rw-p 00000000 00:05 3844 /dev/zero
7f50708e6000-7f507092c000 rw-p 00000000 00:05 3844 /dev/zero
7f507092c000-7f5070972000 rw-p 00000000 00:05 3844 /dev/zero
7f5070972000-7f50709a7000 rw-p 00000000 00:05 3844 /dev/zero
7f50709a7000-7f50709bb000 rw-p 00000000 00:05 3844 /dev/zero
7f50709bb000-7f50709cf000 rw-p 00000000 00:05 3844 /dev/zero
7f50709cf000-7f50709e3000 rw-p 00000000 00:05 3844 /dev/zero
7f50709e3000-7f50709f7000 rw-p 00000000 00:05 3844 /dev/zero
7f50709f7000-7f5070a09000 rw-p 00000000 00:05 3844 /dev/zero
7f5070a09000-7f5070a3e000 rw-p 00000000 00:05 3844 /dev/zero
7f5070a3e000-7f5070a73000 rw-p 00000000 00:05 3844 /dev/zero
7f5070a73000-7f5070ab9000 rw-p 00000000 00:05 3844 /dev/zero
7f5070ab9000-7f5070aff000 rw-p 00000000 00:05 3844 /dev/zero
7f5070aff000-7f5070b34000 rw-p 00000000 00:05 3844 /dev/zero
7f5070b34000-7f5070b69000 rw-p 00000000 00:05 3844 /dev/zero
7f5070b69000-7f5070b9e000 rw-p 00000000 00:05 3844 /dev/zero
7f5070b9e000-7f5070be4000 rw-p 00000000 00:05 3844 /dev/zero
7f5070be4000-7f5070c2a000 rw-p 00000000 00:05 3844 /dev/zero
7f5070c2a000-7f5070c5f000 rw-p 00000000 00:05 3844 /dev/zero
7f5070c5f000-7f5070c78000 rw-p 00000000 00:05 3844 /dev/zero
7f5070c78000-7f5070cc1000 rw-p 00000000 00:05 3844 /dev/zero
7f5070cc2000-7f5070d0b000 rw-p 00000000 00:05 3844 /dev/zero
7f5070d0b000-7f5070d6d000 rw-p 00000000 00:05 3844 /dev/zero
7f5070d6d000-7f5070dcf000 rw-p 00000000 00:05 3844 /dev/zero
7f5070dcf000-7f5070e18000 rw-p 00000000 00:05 3844 /dev/zero
7f5070e18000-7f5070e2d000 rw-p 00000000 00:05 3844 /dev/zero
7f5070e2d000-7f5070e43000 rw-p 00000000 00:05 3844 /dev/zero
7f5070e43000-7f5070e5f000 rw-p 00000000 00:05 3844 /dev/zero
7f5070e5f000-7f5070e7b000 rw-p 00000000 00:05 3844 /dev/zero
7f5070e7b000-7f5070e90000 rw-p 00000000 00:05 3844 /dev/zero
7f5070e90000-7f5070ea1000 rw-p 00000000 00:05 3844 /dev/zero
7f5070ea1000-7f5070eb2000 rw-p 00000000 00:05 3844 /dev/zero
7f5070eb2000-7f5070ec8000 rw-p 00000000 00:05 3844 /dev/zero
7f5070ec8000-7f5070ede000 rw-p 00000000 00:05 3844 /dev/zero
7f5070ede000-7f5070eef000 rw-p 00000000 00:05 3844 /dev/zero
7f5070eef000-7f5070f11000 rw-p 00000000 00:05 3844 /dev/zero
7f5070f11000-7f5070f34000 rw-p 00000000 00:05 3844 /dev/zero
7f5070f34000-7f5070f61000 rw-p 00000000 00:05 3844 /dev/zero
7f5070f61000-7f5070f8e000 rw-p 00000000 00:05 3844 /dev/zero
7f5070f8e000-7f5070fb0000 rw-p 00000000 00:05 3844 /dev/zero
7f5070fb0000-7f5070fda000 rw-p 00000000 00:05 3844 /dev/zero
7f5070fda000-7f5071005000 rw-p 00000000 00:05 3844 /dev/zero
7f5071005000-7f507103d000 rw-p 00000000 00:05 3844 /dev/zero
7f507103d000-7f5071075000 rw-p 00000000 00:05 3844 /dev/zero
7f5071075000-7f507109f000 rw-p 00000000 00:05 3844 /dev/zero
7f507109f000-7f50710be000 rw-p 00000000 00:05 3844 /dev/zero
7f50710be000-7f50710f6000 rw-p 00000000 00:05 3844 /dev/zero
7f50710f6000-7f5071121000 rw-p 00000000 00:05 3844 /dev/zero
7f5071121000-7f507114c000 rw-p 00000000 00:05 3844 /dev/zero
7f507114c000-7f5071184000 rw-p 00000000 00:05 3844 /dev/zero
7f5071184000-7f50711bc000 rw-p 00000000 00:05 3844 /dev/zero
7f50711bc000-7f50711cd000 rw-p 00000000 00:05 3844 /dev/zero
7f50711cd000-7f50711de000 rw-p 00000000 00:05 3844 /dev/zero
7f50711de000-7f50711f4000 rw-p 00000000 00:05 3844 /dev/zero
7f50711f4000-7f507120a000 rw-p 00000000 00:05 3844 /dev/zero
7f507120a000-7f507121b000 rw-p 00000000 00:05 3844 /dev/zero
7f507121b000-7f5071232000 rw-p 00000000 00:05 3844 /dev/zero
7f5071232000-7f5071276000 rw-p 00000000 00:05 3844 /dev/zeroAbort
User Avatar
Member
818 posts
Joined: Sept. 2013
Offline
Afeigin
Not sure if it's related to ramps or not, but my scene is crashing when I try to rebuild the asset in new Houdini version 14.0.403.
The old scene was created in 14.0.386.
Hm, just from the stack trace, I can't tell if this is related to ramps or not. I wonder if the crash could be because of parameter was added or removed. If you instantiate the asset in a fresh scene using 14.0.386, then (without modifying the asset file) load the scene again with 14.0.403, and do reload/sync. Does it crash? This might tell us if it's related to simply changing builds, or some other cause.
Andrew / アンドリュー
User Avatar
Member
897 posts
Joined: July 2018
Offline
Is there any way to add these to a custom qt interface?
B.Henriksson, DICE
User Avatar
Member
818 posts
Joined: Sept. 2013
Offline
The ramp UI is created using Maya's AEmakeLargeRamp, which uses standard Maya widgets. So it's possible to embed it inside a custom Qt interface. Maya provides the MQtUtil class to find the Qt pointer and the Maya name of a Qt widget. Once you have the Maya name, you can use setParent, and run MEL commands to create widgets as usual. See the example:

from maya import cmds
from maya import OpenMayaUI
from PySide import QtGui
import shiboken
w = QtGui.QWidget()
w.setObjectName("ramp_ui")
l = QtGui.QVBoxLayout(w)
l.setObjectName("ramp_layout")
w.show()
w_ptr = OpenMayaUI.MQtUtil.findWindow("ramp_ui")
w_name = OpenMayaUI.MQtUtil.fullName(long(w_ptr))
cmds.setParent(w_name)
mel.eval('source AEaddRampControl; AEmakeLargeRamp("|test_ramp1.houdiniAssetParm_ramp__ramp", 0, 0, 0, 0, 0);')

Maya's documentation has more info on this:
http://help.autodesk.com/view/MAYAUL/2016/ENU/?guid=__files_GUID_3F96AF53_A47E_4351_A86A_396E7BFD6665_htm [help.autodesk.com]
http://help.autodesk.com/view/MAYAUL/2016/ENU/?guid=__cpp_ref_class_m_qt_util_html [help.autodesk.com]
Andrew / アンドリュー
User Avatar
Member
897 posts
Joined: July 2018
Offline
This is just great, awong. Very helpful.
B.Henriksson, DICE
User Avatar
Member
897 posts
Joined: July 2018
Offline
Trying the ramps. Seems like the first segment outputs NaNs. Not until I have two points on x=0 (thus removing the first segment) do I get correct evaluations. The points that queries the first segment disappears.

Also had a a crash when touching a ramp but I'll get back when I got a repro.
B.Henriksson, DICE
User Avatar
Member
818 posts
Joined: Sept. 2013
Offline
kahuna031
Trying the ramps. Seems like the first segment outputs NaNs. Not until I have two points on x=0 (thus removing the first segment) do I get correct evaluations. The points that queries the first segment disappears.

I can't seem to reproduce that the NaN outputs. Are you able to reproduce it on the assets posted in the earlier post here? https://www.sidefx.com/forum/topic/39349/?page=1#post-182227 [sidefx.com]
Andrew / アンドリュー
User Avatar
Member
897 posts
Joined: July 2018
Offline
No, it was on the attribute editor.

I submitted a bug earlier with scene and hda.
B.Henriksson, DICE
User Avatar
Member
897 posts
Joined: July 2018
Offline
Finally got around to implement this, hit some issues that someone helped me deal with:
https://forums.autodesk.com/t5/maya-programming/wrapping-ramp-parameter-in-qt-interface/m-p/7493161/highlight/false#M6668 [forums.autodesk.com]
B.Henriksson, DICE
  • Quick Links