Unfortunately you can not define functions inside the Snippet VOP/SOP and even inside the Inline VOP.
You will have to create a new VEX Builder Type. Or you can use a separate file to define your functions and include them. You can also use the #define directive to define simple functions like this:
#define noise0(PP) (2.0*noise(PP)-1.0)
I have been asking for this feature for a long time, and without it, these operators are greatly limited in what you can do with them.
Found 1559 posts.
Search results Show results as topic list.
Technical Discussion » defining custom vex functions - unexpected identifiers
- animatrix_
- 4528 posts
- Online
Technical Discussion » Houdini tool "guides"
- animatrix_
- 4528 posts
- Online
Yes, just go to Type Properties > Basic > Guide Geometry and select the node that has your guide geometry.
Houdini Lounge » Houdini 13 Wishlist.
- animatrix_
- 4528 posts
- Online
+1 for COP love (:
Ability to use masks for subnets/HDA COPs using the side input
Working cook timers for COPs
Pixel Shader COP
Faster Compositing View if possible?
Overall the COP context is very powerful and intuitive, just needs a bit of enhancing.
Ability to use masks for subnets/HDA COPs using the side input
Working cook timers for COPs
Pixel Shader COP
Faster Compositing View if possible?
Overall the COP context is very powerful and intuitive, just needs a bit of enhancing.
Houdini Lounge » Is the bug form functional?
- animatrix_
- 4528 posts
- Online
No worries. Does this also mean that all my submissions were lost? I don't remember all of them but I will try to submit them when it's back up. Thanks for the heads up.
Houdini Lounge » Is the bug form functional?
- animatrix_
- 4528 posts
- Online
I submitted a dozen over the weekend and one today but got no automatic email confirmation. Is it only me or is it actually broken?
I asked support via email and they said they see no reports, but haven't heard since if it's actually broken or not.
I asked support via email and they said they see no reports, but haven't heard since if it's actually broken or not.
Houdini Lounge » Houdini 13 Wishlist.
- animatrix_
- 4528 posts
- Online
graham
The AttribWrangle and AttribVOP SOPs are essentially point/prim/vert attribute manipulators.
http://www.sidefx.com/docs/houdini12.5/nodes/sop/attribwrangle [sidefx.com]
http://www.sidefx.com/docs/houdini12.5/nodes/sop/attribvop [sidefx.com]
Yes that slipped my mind. I was using it in my Color SOP
Although it still has some limitations such as not being able to use getbbox, relbbox VEX functions. There is also the major issue of being restricted to group types that match your attribute type, unlike AttribCreate SOP, where you can use a point group to create primitive attributes, as it does automatic conversion.
Houdini Lounge » Houdini 13 Wishlist.
- animatrix_
- 4528 posts
- Online
+1 for Primitive VOP. I also had the same idea but wasn't sure if it was feasible. I guess if it's too much, maybe a restricted Point Wrangle SOP style Primitive Wrangle SOP?
Houdini Lounge » RFE :> Forum search function
- animatrix_
- 4528 posts
- Online
I never tried odforce search but being able to search both at once, I like using google search.
Houdini Lounge » RFE :> Forum search function
- animatrix_
- 4528 posts
- Online
You can use google to search both forums:
search_string site:http://forums.odforce.net [forums.odforce.net] OR site:http://www.sidefx.com/index.php?option=com_forum [sidefx.com]
search_string site:http://forums.odforce.net [forums.odforce.net] OR site:http://www.sidefx.com/index.php?option=com_forum [sidefx.com]
Houdini Lounge » Drop on wire in VEX - gone?
- animatrix_
- 4528 posts
- Online
That's why my hotkey worked then, as I use Ctrl+E (:
I use E for Foreach SOP, and other ops in other contexts.
I use E for Foreach SOP, and other ops in other contexts.
Houdini Lounge » Drop on wire in VEX - gone?
- animatrix_
- 4528 posts
- Online
Houdini Lounge » How to use Houdini Expression editor to display Isosurfaces
- animatrix_
- 4528 posts
- Online
TAB menu (over Scene View or Network Editor) > type “isosurface” (inside geometry context)
Houdini Lounge » been thinking about this recently....
- animatrix_
- 4528 posts
- Online
I submitted this on Sep 16, 2012: bug #51118 (:
I wish it worked because I would really love to skip the node placement step.
For all the most frequently used operators, I bypass the TAB menu altogether using hotkeys that immediately creates an instance at the current cursor location, and even wires if a node was selected.
I get about 60 hotkeys per context. For example for SOPs:
F - Fuse
G - Group
S - Switch
L - Line
V - VOPSOP
C - Copy
T - Transform
…
Saves me a great deal of time as creating nodes is one of the most frequently performed action in Houdini.
I really wish we see some enhancement in this area for H13.
I wish it worked because I would really love to skip the node placement step.
For all the most frequently used operators, I bypass the TAB menu altogether using hotkeys that immediately creates an instance at the current cursor location, and even wires if a node was selected.
I get about 60 hotkeys per context. For example for SOPs:
F - Fuse
G - Group
S - Switch
L - Line
V - VOPSOP
C - Copy
T - Transform
…
Saves me a great deal of time as creating nodes is one of the most frequently performed action in Houdini.
I really wish we see some enhancement in this area for H13.
Houdini Indie and Apprentice » modulus function
- animatrix_
- 4528 posts
- Online
Hi,
You can use:
5 % 2
to get the remainder 1.
More info here:
http://www.cprogramming.com/tutorial/modulus.html [cprogramming.com]
You can use:
5 % 2
to get the remainder 1.
More info here:
http://www.cprogramming.com/tutorial/modulus.html [cprogramming.com]
Houdini Learning Materials » Short Tutorial on the Ray SOP
- animatrix_
- 4528 posts
- Online
Work in Progress » dot matrix thing [+hip]
- animatrix_
- 4528 posts
- Online
You can attach the OTL file directly on the forum, or leave the operator unlocked and resave, or embed the OTL directly inside the hip file (Type Properties dialog -> Save To Library -> type “Embedded” and resave.
Houdini Lounge » Houdini 13 Wishlist.
- animatrix_
- 4528 posts
- Online
Stalkerx777
1) VEX 2.0 with classes…
+1 for 1, 6, 8, and 10.
Here is the rest of my humble list:
VEX:
Find, Contains methods for arrays
Array support for pcfilter and pcimport VEX functions
Operator overloading for structs and classes
Closest point on a surface (not an actual physical point in the geometry)
List data type with common methods
Ability to define functions for structs
Ability to create arrays of structs
Ability to define vector3 literals when using variables (without the set function)
VOPs:
Array support
Shortcut to break input/outputs into floats (i.e. breaking P into a Vector to Float node, ready to be used)
SOPs:
Edge Loop and Ring SOPs
Ability to edit multiple points for the Curve SOP
Size detail attributes for bounding generator SOPs (width, height, radius, length, etc)
Ability to use any attribute as normals for Peak and Soft Peak SOP
Edge support for Foreach SOP
Fuse Ends option for the Revolve SOP
Expressions:
Signed random function
Expression to get the number of points in a primitive
Expression to calculate point to point distance
Expression to return the group type similar to what Guess from Group does
rgb and hsv expressions to accept integers for component type
HDAs:
Ability to secure HDAs (i.e. protecting all types of code within the asset)
More composable handle system, handles 2.0
Ability to setup multiple ramp parameters the same way as any other referenced parameters (Copy and Paste references)
Delete attributes in Python HOM
General:
Using float attributes everywhere instead of vectors, matrices
Copy pasting nodes should update channel references when nesting occurs
Ability to retarget dependencies without editing channel references by hand.
UI:
Ability to retain default desktop on file open
Ability to restore 100% zoom level in the network editor
Group parameters that only support a single type to explicitly show it in their labels (i.e. Primitive Group, etc)
Highlighting problem lines in code, or generated code in VOPs
Shift click to select multiple nodes in the Operator Tree
Viewport shortcut keys should cycle between their opposing views (Top to Bottom, Left to Right, etc)
Separate size setting for points and particles
Ability to jump to dependencies using the View Dependencies dialog
Ability to add new operator to selected operator using hotkeys without right clicking node output arrow (i.e. Shift+TAB instead of TAB)
Ability to up/down arrow keys in the Select File dialogs.
Ability to use value ladder for menu parameters to cycle between options
Ability to swap parameters by dragging one over another
Ability to toggle grid in the network editor via hotkey instead of cycling
Pasting literal values shouldn't toggle expression mode for parameters
Foreground highlight for last item used for open menu parameters
Disable When condition for Label parameters for visual cue
Floating parameters windows to automatically fit height to parameters
Unpinned Details View panes to automatically show the output of a VOP node currently being worked on (inside VEX Builder mode)
Normalized access option for vector parameters
Much love to everyone involved in making our dreams come true (:
Technical Discussion » Re-sorting point numbers with python
- animatrix_
- 4528 posts
- Online
You can use nested lists or a dictionary of lists depending on how you want to add items to the appropriate lists.
Work in Progress » Pentagon ball
- animatrix_
- 4528 posts
- Online
Technical Discussion » exposing paint manipulator handle (brush circle) on a DA
- animatrix_
- 4528 posts
- Online
+1
I sent an RFE last year about a composable handle system, that would also easily allow you to modify internal node parameters.
Don't think a revamp of the handle system is in the foreseeable future though.
I sent an RFE last year about a composable handle system, that would also easily allow you to modify internal node parameters.
Don't think a revamp of the handle system is in the foreseeable future though.
-
- Quick Links