paneTab = hou.ui.paneTabUnderCursor() if paneTab.type() == hou.paneTabType.Parm: paneTab.setFilterMode(hou.parmFilterMode.NonDefaultParms) toggle = not paneTab.filterEnabled() paneTab.setFilterEnabled(on=toggle)
Found 179 posts.
Search results Show results as topic list.
Houdini Lounge » Is there a way to assign a keyboard shortcut to filter on...
-
- AslakKS
- 179 posts
- Offline
You need to indent after the if:
Houdini Lounge » Is there a way to assign a keyboard shortcut to filter on...
-
- AslakKS
- 179 posts
- Offline
Houdini Lounge » Made a modern/cleaner UI theme
-
- AslakKS
- 179 posts
- Offline
In h20.5 there is that you can run through the python shell or make a shelf tool
hou.ui.reloadColorScheme()
Animation » Animation Editor: how to jump to current frame?
-
- AslakKS
- 179 posts
- Offline
I noticed in the changelog that from h20.5.301 daily builds there is now shift+f to scroll the view to the current frame.
Edited by AslakKS - 2024年7月24日 06:10:42
PDG/TOPs » TOPs Partition with random index
-
- AslakKS
- 179 posts
- Offline
Partition by comparison can do this, a bit cumbersome to setup if you don't know the work item counts up front. But seems to work well enough ![](/static/djangobb_forum/img/smilies/smile.png)
![](/static/djangobb_forum/img/smilies/smile.png)
Technical Discussion » create multiple channel custom plane
-
- AslakKS
- 179 posts
- Offline
Technical Discussion » Radially distorted bokeh with the physical lens shader?
-
- AslakKS
- 179 posts
- Offline
It is somewhat possible with the lens shader (cpu only), I'm not completely sure it actually does any of the Optical Vignetting though.
Here is what I got when I played with something similar, rotating the bokeh and playing with the anisotropy
![](/forum/attachment/f8e5252f8ed243bf4517517447e730120a38ea4d/)
Attaching the hda if you want to take a peak beneath the hood, assign the vop as the lens shader(karma CPU only)
Here is what I got when I played with something similar, rotating the bokeh and playing with the anisotropy
Attaching the hda if you want to take a peak beneath the hood, assign the vop as the lens shader(karma CPU only)
Edited by AslakKS - 2024年6月24日 16:42:19
Solaris and Karma » Karma Ray Import - list of all variables?
-
- AslakKS
- 179 posts
- Offline
The documentation lists the available rays for import, don't know if this is up to date.
https://www.sidefx.com/docs/houdini/solaris/karma_xpu.html#materials-shading [www.sidefx.com]
https://www.sidefx.com/docs/houdini/solaris/karma_xpu.html#materials-shading [www.sidefx.com]
Technical Discussion » opencl baby steps
-
- AslakKS
- 179 posts
- Offline
The problem is that a vdb does not have v@P, use @nameofvolume.pos instead ![](/static/djangobb_forum/img/smilies/smile.png)
https://www.sidefx.com/docs/houdini/vex/ocl.html#vdb-binding-methods [www.sidefx.com]
![](/static/djangobb_forum/img/smilies/smile.png)
https://www.sidefx.com/docs/houdini/vex/ocl.html#vdb-binding-methods [www.sidefx.com]
// Bindings #bind vdb &density float @KERNEL { float3 pos = @density.pos; float d = @density.worldSample(pos); d *= 0.5; @density.set(d); }
Houdini Lounge » Is there a way to assign a keyboard shortcut to filter on...
-
- AslakKS
- 179 posts
- Offline
It's possible with a shelf tool:
![](/forum/attachment/8da078adc076f7bc9180a5ad3017df4c38987bf1/)
Script code
Currently the hou.parmFilterMode... does not match up with the menu, so you need to use the "graph selected parms" for it to select "non-default parms"
I'll submit a bug report for that.
Script code
paneTab = hou.ui.paneTabUnderCursor() if paneTab.type() == hou.paneTabType.Parm: paneTab.setFilterMode(hou.parmFilterMode.GraphSelectedParms) toggle = not paneTab.filterEnabled() paneTab.setFilterEnabled(on=toggle)
Currently the hou.parmFilterMode... does not match up with the menu, so you need to use the "graph selected parms" for it to select "non-default parms"
![](/static/djangobb_forum/img/smilies/smile.png)
Edited by AslakKS - 2024年6月8日 16:26:16
Technical Discussion » [Python] Updating UI color scheme with shelf tool?
-
- AslakKS
- 179 posts
- Offline
Quite sure you can by submitting your own RFE and referencing the RFE number I included in my post
![](/static/djangobb_forum/img/smilies/wink.png)
Technical Discussion » [Python] Updating UI color scheme with shelf tool?
-
- AslakKS
- 179 posts
- Offline
I have submitted a RFE for this(#145610), currently there is no way to change the UI color scheme through python
Edited by AslakKS - 2024年5月30日 05:54:36
Solaris and Karma » SSS trace sets for karma?
PDG/TOPs » PDG Services - Accessing Log from work_item
-
- AslakKS
- 179 posts
- Offline
Ah! This is excellent - this makes trivial to get the logs.
I tried it with a "ROP Geometry" top running with services + a python script that reads from the "parent_item", and it just works \
/
I tried it with a "ROP Geometry" top running with services + a python script that reads from the "parent_item", and it just works \
![](/static/djangobb_forum/img/smilies/big_smile.png)
PDG/TOPs » PDG Services - Accessing Log from work_item
-
- AslakKS
- 179 posts
- Offline
I think you're correct, you would need to add marks to the log files or do something like this:
As long as you're running in a "Houdini Service Block" you can at the start of the loop store the current number of lines in the log.
Then at the end of the block extract the lines from the stored line number to the end of the file (need to reset the client make it write to the log).
Script at start of loop:
Script at end of loop (With the parm "Reset Service" set to "Reset Client" - "Before Cook"):
Attaching my mock-up scene
As long as you're running in a "Houdini Service Block" you can at the start of the loop store the current number of lines in the log.
Then at the end of the block extract the lines from the stored line number to the end of the file (need to reset the client make it write to the log).
Script at start of loop:
import os import sys import re command_string = " ".join(sys.argv) work_item.setStringAttrib("command_string", command_string) # Parse command string to extract --logfile {path} log_file_match = re.search(r"--logfile\s+(\S+)", command_string) if log_file_match: log_file = log_file_match.group(1) work_item.setStringAttrib("log_file", log_file) if os.path.isfile(log_file): with open(log_file) as f: current_line = sum(1 for _ in f) work_item.setIntAttrib("log_start", current_line) else: work_item.setIntAttrib("log_start", 1)
Script at end of loop (With the parm "Reset Service" set to "Reset Client" - "Before Cook"):
from itertools import islice log_start = work_item.intAttribValue("log_start") with open(work_item.stringAttribValue("log_file")) as f: lines = list(islice(f, log_start+2, None)) # Skip the first two lines work_item.setStringAttrib("log_contents",'\n'.join(lines))
Attaching my mock-up scene
Edited by AslakKS - 2024年5月27日 18:35:02
PDG/TOPs » PDG Services - Accessing Log from work_item
-
- AslakKS
- 179 posts
- Offline
Hi, having wanted this in the past I took a look.
In a python script this seems to work, to get the log paths (used a python script TOP, running on generate)
You would have to make sure that the services are actually running at that stage, I usually set these kinds of scripts to wait for all upstream items to be cooked.
In a python script this seems to work, to get the log paths (used a python script TOP, running on generate)
You would have to make sure that the services are actually running at that stage, I usually set these kinds of scripts to wait for all upstream items to be cooked.
sm = pdg.ServiceManager.get() service = sm.getService("blockTest") clients = service.clients logPaths = [] for clientName in clients: client = service.client(clients[0]) logPaths.append(client.logPath) print(logPaths)
Edited by AslakKS - 2024年5月27日 15:32:12
PDG/TOPs » PDG Services: Writing to work item attributes?
-
- AslakKS
- 179 posts
- Offline
I did not find anything for my needs, but took a look at the new service blocks - and those can easily write to attributes.
Attaching an hello world example here
![](/forum/attachment/986b85bf85460024f227bd8c1d7f6eec09381ec0/)
What I wanted to achieve was writing to pdg attributes from e.g. Python Sop nodes inside my hython services
Attaching an hello world example here
What I wanted to achieve was writing to pdg attributes from e.g. Python Sop nodes inside my hython services
Edited by AslakKS - 2024年5月27日 04:30:26
Houdini Indie and Apprentice » Better visibility of selected nodes
-
- AslakKS
- 179 posts
- Offline
Good to hear that it worked for you too ![](/static/djangobb_forum/img/smilies/smile.png)
Keep in mind that this might break after updating (major updates often change/add values in these files)
![](/static/djangobb_forum/img/smilies/smile.png)
Keep in mind that this might break after updating (major updates often change/add values in these files)
Houdini Indie and Apprentice » Better visibility of selected nodes
-
- AslakKS
- 179 posts
- Offline
Here is how you could do it, copy these files from the houdini install directory to your user directory
Then open up the NodeGraphCommon.inc file in a text editor and change this value "GraphBorderWidth: 2" to something larger
You can then either restart houdini or refresh the color scheme:
![](/forum/attachment/59eff65678957d267897339cf090c292fa68567d/)
Proof that it works![](/static/djangobb_forum/img/smilies/smile.png)
NodeGraphCommon.inc NodeGraphDark.inc NodeGraphLight.inc NodeGraphPro.inc UIDark.hcs UILight.hcs basic_colors.inc
Windows:
Copy from:
C:/Program Files/SideFX Software/houdini20.0.*version*/houdini/config/
Copy to (create config directory if it does not exist):
*username*/Documents/houdini20.0/config/
Linux:
/opt/hfs20.0/houdini/config/
~/houdini20.0/config/
Then open up the NodeGraphCommon.inc file in a text editor and change this value "GraphBorderWidth: 2" to something larger
You can then either restart houdini or refresh the color scheme:
Proof that it works
![](/static/djangobb_forum/img/smilies/smile.png)
Technical Discussion » Trim transparent pixel out of an image in COP
-
- AslakKS
- 179 posts
- Offline
There is a iautocrop [www.sidefx.com] command line tool you could try. I've not used it, so might not work as you want.
I would suggest trying something like
I would suggest trying something like
iautocrop -f -p "A" example.exr cropped.exr
Edited by AslakKS - 2024年4月24日 11:45:19
-
- Quick Links