auto file = static_cast<const char *>(argv); // Filename or Op path
GU_SopQuery qsop;
auto handle = qsop.getDetail(file, -1);
auto gdp = handle.readLock();
I also came across GU_VexGeoInputs in the GU_SopResolver header..however, I could not get that to work.
If anyone knows of a better way I would be very happy
Found 52 posts.
Search results Show results as topic list.
Technical Discussion » HDK: VEX function querying geometric data
- bhaveshpandey
- 127 posts
- Offline
Technical Discussion » H14 migration tips to Attribute VOP SOP ?
- bhaveshpandey
- 127 posts
- Offline
The following line will add points or prims to a group named after the “@group_”
@group_NAME_OF_GROUP = 1;
Alternatively, use:
setpointgroup / setprimgroup etc functions.
for setting Attribs:
i@foo = value;
where (from left to right):
1: i = attrib Type (in this case an int)
2: @ is used for binding the Attribute to the name fooo
3: foo name of attr
4: value = attr value = Attrib type.
I find these more convenient than using VOPs.
All this is already documented the Help Docs.
As far as Attrib Vops are concerned, setattribute wont work because
it expects the attribute to already exist on Geo.
I would rather use Bind vop to write out attributes, its less hassle.
@group_NAME_OF_GROUP = 1;
Alternatively, use:
setpointgroup / setprimgroup etc functions.
for setting Attribs:
i@foo = value;
where (from left to right):
1: i = attrib Type (in this case an int)
2: @ is used for binding the Attribute to the name fooo
3: foo name of attr
4: value = attr value = Attrib type.
I find these more convenient than using VOPs.
All this is already documented the Help Docs.
As far as Attrib Vops are concerned, setattribute wont work because
it expects the attribute to already exist on Geo.
I would rather use Bind vop to write out attributes, its less hassle.
Technical Discussion » H14 VEX bugs
- bhaveshpandey
- 127 posts
- Offline
ArrayType returning functions are allowed and do work, just not in the Wrangle SOPs (ie. when defined inside the Wrangle SOPs).
But they do work if you define these in an external source file which is then included into your Wrangle SOP using the include directives.
The same goes for structs (custom data structures with member functions are supported) and I really like somethings about this. However the one thing I feel missing is Data persistence with Structs (ie. we cant read the data from another Wrangle node or store these on points as attributes). I have however found some workarounds to those.
Congratulations to the team at SESI! This release is really smashing!
But they do work if you define these in an external source file which is then included into your Wrangle SOP using the include directives.
The same goes for structs (custom data structures with member functions are supported) and I really like somethings about this. However the one thing I feel missing is Data persistence with Structs (ie. we cant read the data from another Wrangle node or store these on points as attributes). I have however found some workarounds to those.
Congratulations to the team at SESI! This release is really smashing!
Technical Discussion » grouping in vex
- bhaveshpandey
- 127 posts
- Offline
Came across an entry in the help docs and though this is relevant
to this thread.
In Houdini13+ versions you can decide group memberships dynamically using this syntax (Bear in mind this works only in Attrib Wranglers) :
@group_foo = 1 ;
This will create a point/primitive group called “foo” and
all the points/prims with value of 1 will be members of that group.
FROM THE DOCS:
http://www.sidefx.com/docs/houdini13.0/news/13/geometry [sidefx.com]
You can set the membership of groups in VEX snippets. In nodes that allow VEX/VOPs to edit geometry – such as Attrib VOP SOP, Geometry VOP DOP, and geometry “wrangler” nodes that have VEX snippet fields – you can set whether the current point/edge/primitive is a member of a group by setting the @group_name attribute. Setting the attribute to 1 (or any non-zero value) puts the current element in that group. Setting the attribute to 0 removes the current element from that group.
While I do prefer using attribs over groups
I appreciate groups because they help keep things a bit more
clear. While skimming thorugh someone else's setup/file or handover's
being able to see if there are any groups, prepares me for
expecting different behaviours based on group memebrships.
Using attribs is a bit more involved and needs more restrictive
naming requirements.
to this thread.
In Houdini13+ versions you can decide group memberships dynamically using this syntax (Bear in mind this works only in Attrib Wranglers) :
@group_foo = 1 ;
This will create a point/primitive group called “foo” and
all the points/prims with value of 1 will be members of that group.
FROM THE DOCS:
http://www.sidefx.com/docs/houdini13.0/news/13/geometry [sidefx.com]
You can set the membership of groups in VEX snippets. In nodes that allow VEX/VOPs to edit geometry – such as Attrib VOP SOP, Geometry VOP DOP, and geometry “wrangler” nodes that have VEX snippet fields – you can set whether the current point/edge/primitive is a member of a group by setting the @group_name attribute. Setting the attribute to 1 (or any non-zero value) puts the current element in that group. Setting the attribute to 0 removes the current element from that group.
While I do prefer using attribs over groups
I appreciate groups because they help keep things a bit more
clear. While skimming thorugh someone else's setup/file or handover's
being able to see if there are any groups, prepares me for
expecting different behaviours based on group memebrships.
Using attribs is a bit more involved and needs more restrictive
naming requirements.
Technical Discussion » grouping in vex
- bhaveshpandey
- 127 posts
- Offline
As Jesse mentioned you could use attribs.
You can however group points using vex function
addgroup(string groupName, int ptnum )
However this will only work inside Point Wrangler nodes or inline vop sops
(Pretty much anything that doesn't use Attrib Wrangler vop).
Edit: Another thing to bear in mind is this will obviously be a point group.
You can convert it to primitive group using a group SOP.
You can however group points using vex function
addgroup(string groupName, int ptnum )
However this will only work inside Point Wrangler nodes or inline vop sops
(Pretty much anything that doesn't use Attrib Wrangler vop).
Edit: Another thing to bear in mind is this will obviously be a point group.
You can convert it to primitive group using a group SOP.
Technical Discussion » Sensor Panorama Create vex node example
- bhaveshpandey
- 127 posts
- Offline
They have proven extremely buggy for me as well.
One thing that worked for me in the past was to nuke my ~/houdini12.5
directory and opening Houdini.
(take precautions if you have presets and other config scripts in there..)
Edit:
It used to give me an undefined reference to function error or something
(I cant quite remember) I would guess you might get the same error
message??
One thing that worked for me in the past was to nuke my ~/houdini12.5
directory and opening Houdini.
(take precautions if you have presets and other config scripts in there..)
Edit:
It used to give me an undefined reference to function error or something
(I cant quite remember) I would guess you might get the same error
message??
Technical Discussion » Curl Calculation
- bhaveshpandey
- 127 posts
- Offline
Technical Discussion » SOP Gradient from Volume Analysis to DOP Vector Field Vis
- bhaveshpandey
- 127 posts
- Offline
Technical Discussion » SOP Gradient from Volume Analysis to DOP Vector Field Vis
- bhaveshpandey
- 127 posts
- Offline
Yes you can visualize this using the vector field visualisation DOP.
In H12 you can visualize volumes using volume slice and volume trail in combination.
In H12 you can visualize volumes using volume slice and volume trail in combination.
Technical Discussion » hom volume primitive name
- bhaveshpandey
- 127 posts
- Offline
you can use listbyvals expression.
from help:
from help:
string listbyvals (string surface_node, float class, string attribute, string id)
Returns a list of elements with a given value for a string attribute.
The <class> can be one of D_VERTEX, D_POINT, D_PRIMITIVE, or D_DETAIL
for the corresponding attribute class.
EXAMPLES
listbyvals(“/obj/geo1/facet1”, D_PRIMITIVE, “name”, “piece1”)
Returns a list of primitives with a value of piece1 for the name
attribute in the facet1 surface node in geo1.
Technical Discussion » Interpolating between Dual Rest Fields
- bhaveshpandey
- 127 posts
- Offline
I'm trying to interpolate between 2 rest fields but
am quite confused with the result.
I cached a sim out with rest and rest2 fields and the detail
attributes rest_ratio and rest2_ratio.
As far as I understand these are the weights which are used to blend these
two fields.
So I just picked up rest_ratio and used it to mix the 2 fields but the result
looks somewhat wrong. Do I need to mix these fields using the ratio or just need to switch these?
cheers.
am quite confused with the result.
I cached a sim out with rest and rest2 fields and the detail
attributes rest_ratio and rest2_ratio.
As far as I understand these are the weights which are used to blend these
two fields.
So I just picked up rest_ratio and used it to mix the 2 fields but the result
looks somewhat wrong. Do I need to mix these fields using the ratio or just need to switch these?
cheers.
Technical Discussion » Open CL Settings
- bhaveshpandey
- 127 posts
- Offline
the file crashes on me at 200^3 with the following error msg:
OpenCL Exception: clFinish (-36)OpenCL Context error: CL_OUT_OF_RESOURCES error waiting for idle on Quadro 4000 (Device 0).
OpenCL Context error: CL_OUT_OF_RESOURCES error waiting for idle on Quadro 4000 (Device 0).
has anyone else encountered anything similar?
system specs:
Platform: linux-x86_64-gcc4.4
Number of Cores: 24
Physical Memory: 47.26 GB
OpenGL Vendor: NVIDIA Corporation
OpenGL Renderer: Quadro 4000/PCI/SSE2
OpenGL Version: 4.1.0 NVIDIA 260.19.36
OpenGL Shading Language: 4.10 NVIDIA via Cg compiler
Detected: NVidia Professional
2048 MB
260.19.36.0
Is this related to the drivers (can anyone confirm??)?
cheers.
OpenCL Exception: clFinish (-36)OpenCL Context error: CL_OUT_OF_RESOURCES error waiting for idle on Quadro 4000 (Device 0).
OpenCL Context error: CL_OUT_OF_RESOURCES error waiting for idle on Quadro 4000 (Device 0).
has anyone else encountered anything similar?
system specs:
Platform: linux-x86_64-gcc4.4
Number of Cores: 24
Physical Memory: 47.26 GB
OpenGL Vendor: NVIDIA Corporation
OpenGL Renderer: Quadro 4000/PCI/SSE2
OpenGL Version: 4.1.0 NVIDIA 260.19.36
OpenGL Shading Language: 4.10 NVIDIA via Cg compiler
Detected: NVidia Professional
2048 MB
260.19.36.0
Is this related to the drivers (can anyone confirm??)?
cheers.
Technical Discussion » Particle rendering
- bhaveshpandey
- 127 posts
- Offline
Technical Discussion » GAS Advect DOP
- bhaveshpandey
- 127 posts
- Offline
Technical Discussion » masterclasses??
- bhaveshpandey
- 127 posts
- Offline
i think its about time SESI puts up some masterclasses??
some new additions to the tutorials page are always welcome….some advanced tutorials on DOPs, HDK and Python would be really killer..
some new additions to the tutorials page are always welcome….some advanced tutorials on DOPs, HDK and Python would be really killer..
Houdini Indie and Apprentice » Houdini Apprentice Installation issue in Ubuntu.
- bhaveshpandey
- 127 posts
- Offline
ahhrrrgggg!!! I have my exams starting from day after tommorw..so wont be able to chech up on this thread..Will come back on 16th april..
Thanks to everyone for help..
cheers
back to study :shock:
Thanks to everyone for help..
cheers
back to study :shock:
Houdini Indie and Apprentice » Houdini Apprentice Installation issue in Ubuntu.
- bhaveshpandey
- 127 posts
- Offline
hey thanks guys..I have been successful in uninstalling things but I'm not able to install it again..
I managed to get this code from the terminal..which says there's some error while installing:
Installing: Houdini in /opt/hfs9.5.379
/opt/hfs9.5.379/python/bin/python2.5-bin: 4: Syntax error: word unexpected (expecting “)”)
/opt/hfs9.5.379/python/bin/python2.5-bin: 4: Syntax error: word unexpected (expecting “)”)
Installing apprentice license…
The Houdini 9.5.379 environment has been initialized.
/opt/hfs9.5.379/bin/hkey: line 8: /opt/hfs9.5.379/bin/hkey-bin: cannot execute binary file
/opt/hfs9.5.379/bin/hkey: line 8: /opt/hfs9.5.379/bin/hkey-bin: Success
Error installing apprentice license
Houdini install successful
EDIT: I only understood that something errores out while installing both Houdini as well as Apprentice license. but why?? what does this error mean?? any particular reason?
I managed to get this code from the terminal..which says there's some error while installing:
Installing: Houdini in /opt/hfs9.5.379
/opt/hfs9.5.379/python/bin/python2.5-bin: 4: Syntax error: word unexpected (expecting “)”)
/opt/hfs9.5.379/python/bin/python2.5-bin: 4: Syntax error: word unexpected (expecting “)”)
Installing apprentice license…
The Houdini 9.5.379 environment has been initialized.
/opt/hfs9.5.379/bin/hkey: line 8: /opt/hfs9.5.379/bin/hkey-bin: cannot execute binary file
/opt/hfs9.5.379/bin/hkey: line 8: /opt/hfs9.5.379/bin/hkey-bin: Success
Error installing apprentice license
Houdini install successful
EDIT: I only understood that something errores out while installing both Houdini as well as Apprentice license. but why?? what does this error mean?? any particular reason?
Houdini Indie and Apprentice » Houdini Apprentice Installation issue in Ubuntu.
- bhaveshpandey
- 127 posts
- Offline
this is a bummer
SYmek I tried deleting the files manually but its showing an error:
Error removing file: Permission denied
(looks like i screwed up big time hehe)
I believe I should delete it using sudo in terminal??
if yes, then How??
sorry for pestering you with all these questions..and thanks a lot for all the help
SYmek I tried deleting the files manually but its showing an error:
Error removing file: Permission denied
(looks like i screwed up big time hehe)
I believe I should delete it using sudo in terminal??
if yes, then How??
sorry for pestering you with all these questions..and thanks a lot for all the help
Houdini Indie and Apprentice » Houdini Apprentice Installation issue in Ubuntu.
- bhaveshpandey
- 127 posts
- Offline
hey thanks SYmek..
I tried it through the terminal but got the same error..
When you say I can remove files manually but not the license server..
will it mess with my next Houdini installation??
I found the locations you mentioned and can delete them..but what about license server??
EDIT: there's no file related to Houdini in .local/share/applications
There's just a nuke file and mimeapps.list
(is this why I have things messed up here?)
I tried it through the terminal but got the same error..
When you say I can remove files manually but not the license server..
will it mess with my next Houdini installation??
I found the locations you mentioned and can delete them..but what about license server??
EDIT: there's no file related to Houdini in .local/share/applications
There's just a nuke file and mimeapps.list
(is this why I have things messed up here?)
Houdini Indie and Apprentice » Houdini Apprentice Installation issue in Ubuntu.
- bhaveshpandey
- 127 posts
- Offline
hey thanks SYmek..
I understood the installation part..
even I dunno why I cant see option for houdini in application….I cant even find it with Synaptic Package Manager!!
I tried uninstalling hoping that a reinstall might iron out the problems but when I uninstall it I get an error in terminal:
Removing desktop files…
/opt/hfs9.5.379/python/bin/python2.5-bin: 4: Syntax error: word unexpected (expecting “)”)
Press Enter to finish.
How do I uninstall it now??
I understood the installation part..
even I dunno why I cant see option for houdini in application….I cant even find it with Synaptic Package Manager!!
I tried uninstalling hoping that a reinstall might iron out the problems but when I uninstall it I get an error in terminal:
Removing desktop files…
/opt/hfs9.5.379/python/bin/python2.5-bin: 4: Syntax error: word unexpected (expecting “)”)
Press Enter to finish.
How do I uninstall it now??
-
- Quick Links