Comments (5)
After more experiments it seems labelExpressions do not work in the MainMenuCommon.xml. The main menu on the Mac is the Apple menu bar and the rest of the menus are drawn by Houdini. I will come up with a simple example and send to SideFX. For the time being could the Shruggie be removed or changed to a plain text label.
Edit: Bug submitted to SideFX.
<?xml version="1.0" encoding="UTF-8"?>
<mainMenu>
<menuBar>
<subMenu id="testing_menu">
<insertBefore>help_menu</insertBefore>
<label>Testing</label>
<subMenu id="testing_submenu">
<label>Test Submenu</label>
<scriptItem id="h.test_label">
<label>Plain label</label>
<scriptCode>
<![CDATA[
hou.ui.displayMessage("Plain label")]]>
</scriptCode>
</scriptItem>
<scriptItem id="h.test_label_expression">
<labelExpression>'Expression label'</labelExpression>
<scriptCode>
<![CDATA[
hou.ui.displayMessage("Expression label")]]>
</scriptCode>
</scriptItem>
<separatorItem />
</subMenu>
</subMenu>
</menuBar>
</mainMenu>
from qlib.
The bug has been fixed on the 20.0.708 release. You should just stick with an ASCII label because the fix will not be available on older versions
from qlib.
hi @cfxegbert could you just paste the updated code snippet here? :) but you could do a pull request as well if you like, whatever is easier. thanks for spotting this, I personally don't have OSX (and don't do much testing on windows either :))
On second thought, please paste the code here, so I could test on linux right away without trying to pull from any repo, etc. I'll also try to test it on windows! :D
from qlib.
It seems no matter what the expression I use in houdini crashes on the Mac.
<labelExpression>'Shruggie'</labelExpression>
will crash Houdini 20
<label>Shruggie</label>
works fine.
I even tried
<labelExpression><![CDATA[
return 'Shruggie']]>
</labelExpression>
and it failed.
Maybe open an issue with SideFX on this one.
from qlib.
see also Aeoll/Aelib#22
from qlib.
Related Issues (20)
- Group Expression: group by percent % using name attribute
- Add to docs: parm RMB menu "Toggle abs/rel OP path" also expands expressions/variables
- parm RMB popup menu items: start frame, frame range
- An efficient method within Pyro SOP to cull with a frustum
- subnet: group watertight pieces
- Volume/VDB Visualize qL SOP Field popup not working properly
- Volume Shape qL SOP more informative network info
- Trail Jitter qL SOP generates unnecessary id attributes
- check Python SOP gallery items for py3 compatibility
- Add "delta" support for Rest Position qL SOP
- fix build per poly udims gallery item
- new Color SOP preset: Color from UDIM attribute
- Volume/VDB Visualize qL SOP: expose trail segments parameter explicitly
- NE qLib -> Select Related -> By Me
- Make qlib_package.json platform agnostic HOT 2
- Attrib Randomize preset: random orient along X, Y, Z axes
- Attrib Visualizer qL SOP: disable safeguards by default
- Vertigo (Dolly/Zoom) camera tool should work in LOPs
- VDB Mask qL SOP
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qlib.