How to change parameter value using value ladder using laptop's trackpad (without mouse)? Does it only work using middle mouse ?
Thanks
Found 48 posts.
Search results Show results as topic list.
Houdini Indie and Apprentice » using value ladder without mouse
- metaclay2
- 48 posts
- Offline
Technical Discussion » $PT error
- metaclay2
- 48 posts
- Offline
juejuezi
offset = point(0,'class',@ptnum);
Thanks that VEX works. But what happen with my script ? what makes the error ?
Technical Discussion » $PT error
- metaclay2
- 48 posts
- Offline
I have this simple setup :
script :
Why is the $PT generating the error?
also when using path like "/obj/geo1/connectivity1" , what is the fastest way to get his path from any node. Also
how do I refer to the current node, so I don't have to type long path?
script :
point("/obj/geo1/connectivity1", $PT , "class", 0)
Why is the $PT generating the error?
also when using path like "/obj/geo1/connectivity1" , what is the fastest way to get his path from any node. Also
how do I refer to the current node, so I don't have to type long path?
Edited by metaclay2 - April 11, 2024 05:59:41
Technical Discussion » List of local variable
- metaclay2
- 48 posts
- Offline
tamtemetaclay2they are Constants, which represent more human readable alternative to just typing integer numbers
Btw , i found something else like D_X / D_Y / D_Z . Since we can't use it with '$' prefix then they're not variables ,right? what species is this other than variables and attributes ?
like in centroid() hscript function [www.sidefx.com], you can useinstead ofD_X, D_Y, D_Zwhich honestly is not that necessary and I always use 0, 1, 20, 1, 2
however for bbox() hscript function [www.sidefx.com], it may be much clearer to use:instead ofD_XMIN, D_YMIN, D_ZMIN, D_XMAX, D_YMAX, D_ZMAX, D_XSIZE, D_YSIZE, D_ZSIZE0, 1, 2, 3, 4, 5, 6, 7, 8
Thanks for the explanation. I really appreciate it.
Technical Discussion » offset parameter of attribute noise creating bad shading.
- metaclay2
- 48 posts
- Offline
jsmack
that large of an offset causes the noise space to run out of numbers due to catastrophic loss of precision. 32 bits only gives about 6 or 7 decimal places of precision, so adding a 7 digit number leaves you with 0 decimal places to work with.
Thanks for the explanation.
Technical Discussion » offset parameter of attribute noise creating bad shading.
- metaclay2
- 48 posts
- Offline
I have this Grid (400x400) (row 300 and col 300). I added 'attribute noise' with default setting and set Amplitude to 100 and element size to 400. This is the output :
But when I set the 'offset' to very high number such as 100000, then the shading starts to break :
I think this 'offset' parameter should only control the offset of the noise not affecting the roughness at all. Why did I got this output ?
But when I set the 'offset' to very high number such as 100000, then the shading starts to break :
I think this 'offset' parameter should only control the offset of the noise not affecting the roughness at all. Why did I got this output ?
Edited by metaclay2 - March 17, 2024 07:17:12
Technical Discussion » How to hide template view ?
- metaclay2
- 48 posts
- Offline
Technical Discussion » How to hide template view ?
- metaclay2
- 48 posts
- Offline
I have this Nodes setup : 10 grids with random direction and Noise to use as boolean cutter :
I use blast node to hide the other 9 grids and view only 1 grid to clearly see the noise :
Now when I want to edit the attribute noise nodes while viewing the blast . When I select the attribute noise ,the viewer looks very busy because it shows template of all grids :
How can I hide the template while selecting the attribute noise ?
I use blast node to hide the other 9 grids and view only 1 grid to clearly see the noise :
Now when I want to edit the attribute noise nodes while viewing the blast . When I select the attribute noise ,the viewer looks very busy because it shows template of all grids :
How can I hide the template while selecting the attribute noise ?
Technical Discussion » List of local variable
- metaclay2
- 48 posts
- Offline
Enivob
Here's some, but certain variables are only available on certain nodes in certain contexts. Check any node's help card for more details.
Scroll down a bit.
https://www.sidefx.com/docs/houdini/network/expressions.html [www.sidefx.com]
Thanks a lot.
Btw , i found something else like D_X / D_Y / D_Z . Since we can't use it with '$' prefix then they're not variables ,right? what species is this other than variables and attributes ?
Technical Discussion » List of local variable
- metaclay2
- 48 posts
- Offline
Where can I find the list of built-in local variables of a geometry ? such as $TX, $N , $CEX etc.
Technical Discussion » What is the difference between =set() and ={}
- metaclay2
- 48 posts
- Offline
animatrix_
Hi,
{} only works when you use literal values inside. The {} syntax is designed for static, compile-time assignments rather than dynamic, runtime evaluations.
Use set() when you need to initialize vectors with dynamic values, computations, or function calls.
Thanks, my next question is : if set() can also use static value the what is the benefit of using {} ? or If the value is just static then what makes the {} preferable compared to set() ?
Edited by metaclay2 - March 16, 2024 11:45:35
Technical Discussion » Different result for the same 'rand(1)' expression
- metaclay2
- 48 posts
- Offline
BabaJ
Likely because they are two different functions - Only the same in name.
One is an Hscript function the other vex.
My Guess - The Hscript one has been around for a long time before the vex context came along.
But when they wrote the rand function for vex, I think they made some decisions/considerations about that to 'work better' in a vex context. Being that both functions purpose is to produce a random result - I don't think they 'felt' the need and try to keep the results the same for same seed values.
If you do need some consistency between both contexts, you should be able to go with one rand() in one context and simply reference the result for another context.
Thanks. I just curious why they produce different output. I didn't know the other is Hscript. I'm new to Houdini scripting and thought they are all vex :-).
Technical Discussion » What is the difference between =set() and ={}
- metaclay2
- 48 posts
- Offline
I'm new to vex. What is the difference when setting the attribute using set() and {} ?
for example :
When using {} , why can't I use math expression or function such as :
Thanks
for example :
v@Cd = {0,0,0}; v@Cd = set(0,0,0);
When using {} , why can't I use math expression or function such as :
@Cd = {rand(1) *2 , 0 , 0};
Thanks
Technical Discussion » Different result for the same 'rand(1)' expression
- metaclay2
- 48 posts
- Offline
I added a 'Attribute wrangler' and use this code to create xx primitive attribute :
the result is : 0.00292516
but if I add attribute using 'attribute create' and use this code :
the result is : 0.800464
Why are they different ?
f@xx = rand(1);
the result is : 0.00292516
but if I add attribute using 'attribute create' and use this code :
rand(1)
the result is : 0.800464
Why are they different ?
Technical Discussion » Randomize Normal attribute using attribWrangle
- metaclay2
- 48 posts
- Offline
@
it works! Thanks a lot.
viklc
Since you are operating with individual floats, it is sometimes not clear what the result should be. Use an explicit type cast like this:@N = vector(rand(@P)) * 2 - 1;
it works! Thanks a lot.
Technical Discussion » Randomize Normal attribute using attribWrangle
- metaclay2
- 48 posts
- Offline
I want to create a Normal attributes with random value. I can use attribNoise but I want to try using attribwrangle. I use this code to get random value to N :
It works but since the random generate value from 0 to 1, I want to convert to -1 to 1 range simply multiply it by 2 then subtract by 1 :
But I got identical result for all the x,y and z. I also tried using fit() but got same problem. What is the proper way to do it ?
@N = rand(@P) ;
It works but since the random generate value from 0 to 1, I want to convert to -1 to 1 range simply multiply it by 2 then subtract by 1 :
@N = (rand(@P) *2 ) -1 ;
But I got identical result for all the x,y and z. I also tried using fit() but got same problem. What is the proper way to do it ?
Technical Discussion » Attribute transfer with persistant effect
- metaclay2
- 48 posts
- Offline
For example i want to transfer the Cd attribute, but want the Cd to keep the color value once it's been transfer , so if i then move the source object away, the target object still keep the value of the Cd.
How can i do this ?
How can i do this ?
Technical Discussion » zoom in 3d view
- metaclay2
- 48 posts
- Offline
jsmack
That's the default behavior. If you changed it, you can change it back in the preferences.
Are you using v16 ? i just installed 16 and this is not default behaviour. It works on the network editor where i can zoom using current mouse position as center of zooming, but in 3dviewport, it always zoom using center of the viewport. In preference there's only setting for tumbling and panning, there's no zoom setting.
Technical Discussion » zoom in 3d view
- metaclay2
- 48 posts
- Offline
Hi, when zooming in 3d view, is there any setting to change so i can zoom using current mouse position as the pivot (center of zooming) rather than use the center of 3d view ?
Technical Discussion » select point in spreadsheet
- metaclay2
- 48 posts
- Offline
If i select points , i can see they will be hightlighted in the spreadsheet. How to do the opposite ? i want to select the points in the spreadsheet and have the associated points are highlighted in the 3d viewer.
is it possible ?
is it possible ?
-
- Quick Links