Perhaps this thread will help you
https://www.sidefx.com/forum/topic/96210/ [www.sidefx.com]
Found 280 posts.
Search results Show results as topic list.
PDG/TOPs » work item logs to console
- alexwheezy
- 283 posts
- Offline
PDG/TOPs » TOPs Partition with random index
- alexwheezy
- 283 posts
- Offline
tyler.brittonYou could try using a Python Partitioner with a custom index that will have a random value for other items.alexwheezy
I think you can get a similar randomization pattern with Partition by Combination.
Hmmm I tried that, however it does not always match partitions between the two nodes. Also the partitioning is very linear, and not random.
PDG/TOPs » TOPs Partition with random index
- alexwheezy
- 283 posts
- Offline
Solaris and Karma » Edit Property pscale bug?
- alexwheezy
- 283 posts
- Offline
I don't think it's quite right to use Edit Properties for this since the pscale value array is a
float[]
. It would be better to multiply each value in the array by some value.
Edited by alexwheezy - July 23, 2024 01:38:15
Technical Discussion » Vex: Fix Backslashes into Frontslashes
- alexwheezy
- 283 posts
- Offline
pixelninja
Oddly this seems to only apply to the current line, using double quotes on subsequent lines works fine despite the syntax highlighting still being broken.
I agree. There is some problem with how quotes are interpreted on the same line. I've found at least 3 ways around this besides just changing double quotes to single quotes.
We can just move the next argument to the next line. That looks terrible.
s@filepath = replace(s@filepath, "\\\", "/"); string TESTING = "Some more code";
It's a little better if we just create another variable.
string s = "\\\"; s@filepath = replace(s@filepath, s, "/"); string TESTING = "Some more code";
And since we know the ascii codes for these characters, we can use the chr() expression directly so that we don't have to remember how many characters must be in the string for it to work correctly.
#define BSLASH chr(92) #define FSLASH chr(47) s@filepath = replace(s@filepath, BSLASH, FSLASH); string TESTING = "Some more code";
Technical Discussion » Vex: Fix Backslashes into Frontslashes
- alexwheezy
- 283 posts
- Offline
pixelninja
"\\\" results in syntax errors "Unexpected end of file" and "Unterminated string" while printing the following to the console:
That's how it's going to work.
s@filepath = replace(s@filepath, "\\\", '/');
PDG/TOPs » ffmpeg log debug
- alexwheezy
- 283 posts
- Offline
Ivan L
sometimes all it shows is this
You will not see a task logging run for the In Process cooking type.
PDG/TOPs » work item logs to console
- alexwheezy
- 283 posts
- Offline
Hi,
In the documentation on environment variables, you can find several variables that are responsible for the desired level of logging during cooking. For example, HOUDINI_PDG_NODE_DEBUG, HOUDINI_PDG_WORK_ITEM_DEBUG, HOUDINI_PDG_SCHEDULER_DEBUG, etc.
https://www.sidefx.com/docs/houdini/ref/env.html [www.sidefx.com]
In the documentation on environment variables, you can find several variables that are responsible for the desired level of logging during cooking. For example, HOUDINI_PDG_NODE_DEBUG, HOUDINI_PDG_WORK_ITEM_DEBUG, HOUDINI_PDG_SCHEDULER_DEBUG, etc.
https://www.sidefx.com/docs/houdini/ref/env.html [www.sidefx.com]
PDG/TOPs » ffmpeg log debug
- alexwheezy
- 283 posts
- Offline
The operation log is stored directly in the work item after cooking. You can click on the work item to view it.
Houdini Lounge » Disconnect node
- alexwheezy
- 283 posts
- Offline
Technical Discussion » OpenCL libraries?
- alexwheezy
- 283 posts
- Offline
There is already a standard library $HFS/houdini/ocl that Houdini actively uses in so many places where OpenCL is needed.
In addition, since H20.5 it is now possible to import prequel code.
Use #import for Prequel Code
Several common headers are always included. These can be brought in with either a #include or #import directive, this option will pick the latter. #import results in messier results in the Generate Code output, but can speed up caching of kernels on Windows.
In addition, since H20.5 it is now possible to import prequel code.
Use #import for Prequel Code
Several common headers are always included. These can be brought in with either a #include or #import directive, this option will pick the latter. #import results in messier results in the Generate Code output, but can speed up caching of kernels on Windows.
Technical Discussion » masking pattern to include all except one object.
- alexwheezy
- 283 posts
- Offline
Houdini Lounge » [H20.5] Structs and Outer Code
- alexwheezy
- 283 posts
- Offline
Hi,
Maybe someone missed this cool update and didn't point it out in the release notes, but in H20.5 it's now possible to define your types directly in the AttribWrangle snippet.
https://www.sidefx.com/docs/houdini/vex/snippets.html#structs-and-outer-code [www.sidefx.com]
Maybe someone missed this cool update and didn't point it out in the release notes, but in H20.5 it's now possible to define your types directly in the AttribWrangle snippet.
#include <math.h> #outer // { // This code will be placed outside of the generated function struct Point{ float x, y; float dist(const Point other){ return sqrt(pow(other.x - x, 2) + pow(other.y - y, 2)); } }; struct Rectangle{ Point p1, p2; float area(){ return abs((p1.x - p2.x) * (p1.y - p2.y)); } float perimeter(){ return 2 * (abs(p1.x - p2.x) + abs(p1.y - p2.y)); } } #endouter // } // This code will be in the function. Point pt1 = Point(0,0); Point pt2 = Point(1,2); @dist = pt1->dist(pt2); Rectangle rect = Rectangle(pt1, pt2); @area = rect->area(); @perimeter = rect->perimeter();
https://www.sidefx.com/docs/houdini/vex/snippets.html#structs-and-outer-code [www.sidefx.com]
Edited by alexwheezy - July 19, 2024 01:10:43
Solaris and Karma » Edit Primitive paths
- alexwheezy
- 283 posts
- Offline
Hi,
You can use Restructure Scene Graph to edit the structure of the primes in the graph.
You can use Restructure Scene Graph to edit the structure of the primes in the graph.
Technical Discussion » How to create karma material builder with pyhton?
- alexwheezy
- 283 posts
- Offline
Use the same functions that are called in the context of the network.
import voptoolutils dest = hou.node('/obj/lopnet1/materiallibrary1') mask = voptoolutils.KARMAMTLX_TAB_MASK # USD Material Builder voptoolutils._setupMtlXBuilderSubnet(destination_node=dest) # Karma Material Builder voptoolutils._setupMtlXBuilderSubnet(destination_node=dest, name='karmamaterial', mask=mask, folder_label='Karma Material Builder')
Technical Discussion » TOPs trying to rename UDIM to add ACEScg into file name
- alexwheezy
- 283 posts
- Offline
You can use a dot delimiter and then use an array of values to substitute in the paths.
Houdini Lounge » Defaults for Snap options.
- alexwheezy
- 283 posts
- Offline
PDG/TOPs » multiple work items list the same file problem?
- alexwheezy
- 283 posts
- Offline
digitalwu
How to solve this?
I am following the tutorial: https://www.sidefx.com/tutorials/intro-to-pdg/ [www.sidefx.com]
I have not watched this tutorial, but have studied the final scenes they work without this warning.
At what stage do you get this warning?
Technical Discussion » Copernicus Performance
- alexwheezy
- 283 posts
- Offline
The heighttoambientocclusion5 node has a View Radius parameter, if you reduce it, the performance will increase.
Technical Discussion » Live read out of user commands
- alexwheezy
- 283 posts
- Offline
you can read this post and other discussions
https://www.sidefx.com/forum/topic/6477/?page=1#post-30659 [www.sidefx.com]
https://www.sidefx.com/forum/topic/6477/?page=1#post-30659 [www.sidefx.com]
-
- Quick Links