Hi
The pattern is: “if(expression, true_value, false_value)”. You have misplaced one parenthesis after the expression statement.
So it needs to look like this: (if($F>=30,9,0))
http://www.sidefx.com/docs/houdini15.0/expressions/if [sidefx.com]
-b
Found 444 posts.
Search results Show results as topic list.
Houdini Indie and Apprentice » vex expression if syntax?
- bonsak
- 459 posts
- Offline
Technical Discussion » Trouble with UI on second monitor with H15 on macbook retina
- bonsak
- 459 posts
- Offline
HI
Not sure if those glitches has anything to do with Houdini as i get the exact same happening in both After Effetcs and Cinema 4D and even Illustrator. My hunch is that this has to do with osx. Just my 2/100
-b
Not sure if those glitches has anything to do with Houdini as i get the exact same happening in both After Effetcs and Cinema 4D and even Illustrator. My hunch is that this has to do with osx. Just my 2/100
-b
Technical Discussion » For an object ,how to use a camera to cut it ?
- bonsak
- 459 posts
- Offline
Technical Discussion » Is there anyway to make a CVEX SOP digital asset?
- bonsak
- 459 posts
- Offline
I see. Didn't realise you wanted to create geo. You can make a CVEX Operator, place it in SHOP and then point to that code from the Vex Setup tab in an Attribute VOP in SOP's. A little hacky i know. You will end up with an asset inside an asset though.
Why don't you want to use an Attribute Wrangle?
-b
Why don't you want to use an Attribute Wrangle?
-b
Technical Discussion » Q: Rotate primitive in VEX
- bonsak
- 459 posts
- Offline
Thanks alot Jesse!
I didn't know about the trick to move back and fourth to the origin. Very nice. I also realised that i don't have to calculate the pivot in the first place , i can just use the prim point 0. Here is what i ended up with. Removed the “ch” for sake of clarity:
float angle = 1;
vector p0,p1;
matrix3 rotm;
i@points = primpoints(0, @primnum);
p0 = point( 0, ‘P’, @points );
p1 = point( 0, ‘P’, @points );
v@pivot = p0;
v@axis = normalize( p0 - p1 );
rotm = ident();
rotate(rotm, angle, v@axis);
@P -= v@pivot;
@P *= rotm;
@P += v@pivot;
-b
I didn't know about the trick to move back and fourth to the origin. Very nice. I also realised that i don't have to calculate the pivot in the first place , i can just use the prim point 0. Here is what i ended up with. Removed the “ch” for sake of clarity:
float angle = 1;
vector p0,p1;
matrix3 rotm;
i@points = primpoints(0, @primnum);
p0 = point( 0, ‘P’, @points );
p1 = point( 0, ‘P’, @points );
v@pivot = p0;
v@axis = normalize( p0 - p1 );
rotm = ident();
rotate(rotm, angle, v@axis);
@P -= v@pivot;
@P *= rotm;
@P += v@pivot;
-b
Technical Discussion » Q: Rotate primitive in VEX
- bonsak
- 459 posts
- Offline
Technical Discussion » Is there anyway to make a CVEX SOP digital asset?
- bonsak
- 459 posts
- Offline
Technical Discussion » Q: Rotate primitive in VEX
- bonsak
- 459 posts
- Offline
Hi
In VEX, how do i rotate a primitive around one of it's edges? Let's say a have a triangle where none of the edges are aligned with the coordinate system.
How do i set the primitive's rotation axis?
Any help appreciated.
Cheers
Bosak
In VEX, how do i rotate a primitive around one of it's edges? Let's say a have a triangle where none of the edges are aligned with the coordinate system.
How do i set the primitive's rotation axis?
Any help appreciated.
Cheers
Bosak
Technical Discussion » Is there anyway to make a CVEX SOP digital asset?
- bonsak
- 459 posts
- Offline
Hi
File -> New Operator Type, then select VEX from the list, Accept, then click the “Code” tab.
-b
File -> New Operator Type, then select VEX from the list, Accept, then click the “Code” tab.
-b
Technical Discussion » Attrib Wrangle: Modify another Points Position
- bonsak
- 459 posts
- Offline
Hi
I'm not sure what you want to do exactly but it sounds like pcopen is your freind: http://www.sidefx.com/docs/houdini15.0/vex/functions/pcopen [sidefx.com]
-b
I'm not sure what you want to do exactly but it sounds like pcopen is your freind: http://www.sidefx.com/docs/houdini15.0/vex/functions/pcopen [sidefx.com]
-b
Technical Discussion » Q: Photoshop export .rat?
- bonsak
- 459 posts
- Offline
Hi
Is there such a thing as an export to *.rat plugin from Photoshop?
Preferably osx?
Also, does anybody know if there is a Quick View plugin for rat files. Would make it very easy to preview files in the finder.
-b
Is there such a thing as an export to *.rat plugin from Photoshop?
Preferably osx?
Also, does anybody know if there is a Quick View plugin for rat files. Would make it very easy to preview files in the finder.
-b
Houdini Learning Materials » Sharing my tutorials
- bonsak
- 459 posts
- Offline
Houdini Indie and Apprentice » Where is the color node in H15?
- bonsak
- 459 posts
- Offline
You were probably not inside the geometry context.
Yes. Nice to see other Norwegians here
-b
Yes. Nice to see other Norwegians here
-b
Houdini Indie and Apprentice » Where is the color node in H15?
- bonsak
- 459 posts
- Offline
Hi
Tab key -> Material -> Color?
Or Tab key + type “Color”?
Do you have focus inside the Geo1 node?
-b
Tab key -> Material -> Color?
Or Tab key + type “Color”?
Do you have focus inside the Geo1 node?
-b
Technical Discussion » Querying nodes in new for loop
- bonsak
- 459 posts
- Offline
Hi
I don't know if there is a way to query that membership. But the Block Begin and the Block End are aware of each other through the Block Path parameter. So you have a range to work with (Sort of)
Could you iterate over all the nodes connected to the output of Block Start and the input of Block end? As some nodes are only connected to one or the other and some are only indirectly connected so you would have to run you iterations a couple of levels deep.
Might be worth a try.
-b
I don't know if there is a way to query that membership. But the Block Begin and the Block End are aware of each other through the Block Path parameter. So you have a range to work with (Sort of)
Could you iterate over all the nodes connected to the output of Block Start and the input of Block end? As some nodes are only connected to one or the other and some are only indirectly connected so you would have to run you iterations a couple of levels deep.
Might be worth a try.
-b
Technical Discussion » @opinput1_P access to individual componenets
- bonsak
- 459 posts
- Offline
jlaitUps, didn't see that
@opinput1_P, as mentioned upthread, is meant to read from the second input. So, yes, it is expected behaviour.
It continued to work for me on input 1 even after i had disconnected everything from input 2
-b
Technical Discussion » @opinput1_P access to individual componenets
- bonsak
- 459 posts
- Offline
Tried with a null connected to input 2 and then it works.
Is that the expected behaviour?
-b
Is that the expected behaviour?
-b
Technical Discussion » @opinput1_P access to individual componenets
- bonsak
- 459 posts
- Offline
keyframeHi
@y = v@opinput1_P.y works.
If i enter this in an Attribute Wrangle it doesn't produce any errors but doesn't return any values other than 0.0 either. Regardless of input geo.
-b
Technical Discussion » visualizers, and the dreaded triplicate form
- bonsak
- 459 posts
- Offline
DASDIt seems that the Name, Label and Attribute fields in the Visualize node doesn't evaluate expressions (yet).
You could then make that the default preset for the node and never worry about it again
Tried with python:hou.node('/obj/geo1/visualize1').parm('attrib').set('test')
That doesn't work either:Traceback (most recent call last):
File “<console>”, line 1, in <module>
AttributeError: ‘NoneType’ object has no attribute ‘set’
-b
Technical Discussion » Q: Sort attributes
- bonsak
- 459 posts
- Offline
-
- Quick Links