Hi,
I am trying to access the point indices prims are made up of in Python.
Currently I am doing this with:
for k in geo.prims():
MyCurrentFace = k
NumVertsCurrentFace = MyCurrentFace.numVertices()
for Verts in MyCurrentFace.vertices():
VertsCurrentFace = Verts.point().number()
print VertsCurrentFace
It works but it is relatively slow.
In another thread where I asked how to access point positions I was told that it would be very fast with using:
hou.Geometry.pointFloatAttribValues(geo,“P”)
That worked very fast.
So my question is, is it possible to get the point indices of individual faces in a similar way?
I have so far tried to create relevant Attributs with nodes such as the attribcreate node, but I wasn´t sucessful.
I did some other tests and manged to create Attributes such as Normals and similar things with nodes which I was then able to access with Python. But I have so far not managed to create Attributes for point index per prim.
Found 9 posts.
Search results Show results as topic list.
Technical Discussion » Get point indices in prims with Python
- samfisher
- 9 posts
- Offline
Technical Discussion » Getting locations of points with Python is slow
- samfisher
- 9 posts
- Offline
Thank you, this is a lot faster.
I am interested in pointFloatAttribValues. How do I find out which other Attributes besides “P” I can use in pointFloatAttribValues?
I checked in the manual but I can not find a list of Attributes. Hadn´t you told me I would never have known that “P” works. How would one find that out?
I am interested in pointFloatAttribValues. How do I find out which other Attributes besides “P” I can use in pointFloatAttribValues?
I checked in the manual but I can not find a list of Attributes. Hadn´t you told me I would never have known that “P” works. How would one find that out?
Technical Discussion » Getting locations of points with Python is slow
- samfisher
- 9 posts
- Offline
Hi,
I am trying to collect the locations off all points in a mesh with python. Currently I am doing that with the following line:
MyNumPoints = len(MyNode.geometry().points())
for i in range(MyNumPoints):
hou.node.geometry().points().position()
The script gets exremely slow on meshes that have around 1000 points or more.
Is there a better way to access point positions via Python?
Or is it perhaps better to use hscript or VEX for something like that?
I am trying to collect the locations off all points in a mesh with python. Currently I am doing that with the following line:
MyNumPoints = len(MyNode.geometry().points())
for i in range(MyNumPoints):
hou.node.geometry().points().position()
The script gets exremely slow on meshes that have around 1000 points or more.
Is there a better way to access point positions via Python?
Or is it perhaps better to use hscript or VEX for something like that?
Technical Discussion » Python - print selected
- samfisher
- 9 posts
- Offline
Technical Discussion » Python - print selected
- samfisher
- 9 posts
- Offline
Hi,
i am currently trying to learn Houdinis python and would like to know how to access and print selected elements.
For example I want to select a point, run the script and then print the index number of the point.
i am currently trying to learn Houdinis python and would like to know how to access and print selected elements.
For example I want to select a point, run the script and then print the index number of the point.
Houdini Lounge » Prices for rendering on AWS cloud
- samfisher
- 9 posts
- Offline
Yes, not bad at all.
It is possible to simulate as well? Very interesting.
How do you do that?
It is possible to simulate as well? Very interesting.
How do you do that?
Houdini Lounge » Prices for rendering on AWS cloud
- samfisher
- 9 posts
- Offline
All right thank you very much.
I checked and it appears that the largest machine you can chose is the 108 EC2 Compute Units which would actually be 3 c4.8Xlarge instances on Amazon.
I usually render on Amazon with a cloud farm I build myself with Blender and wanted to know how the Houdini farm compares to it.
The price for 108 Units is 3.36$ / hour.
This means that one c4.8xlarge costs 1.12$ / hour.
A spot instance of a c4.8xlarge booked normally via Amazon costs, depending on the time between 0.22$ and 0.45$ making the Houdini farm 2.5 to 5 times more expensive.
This is still about a third or half the cost of a commercial third party render farm. Not bad.
I checked and it appears that the largest machine you can chose is the 108 EC2 Compute Units which would actually be 3 c4.8Xlarge instances on Amazon.
I usually render on Amazon with a cloud farm I build myself with Blender and wanted to know how the Houdini farm compares to it.
The price for 108 Units is 3.36$ / hour.
This means that one c4.8xlarge costs 1.12$ / hour.
A spot instance of a c4.8xlarge booked normally via Amazon costs, depending on the time between 0.22$ and 0.45$ making the Houdini farm 2.5 to 5 times more expensive.
This is still about a third or half the cost of a commercial third party render farm. Not bad.
Houdini Lounge » Prices for rendering on AWS cloud
- samfisher
- 9 posts
- Offline
Hi,
I saw that it is possible to easily render Houdini scenes on AWS and have a few questions. In the FAQ it is stated that it is more expensive per computer hour than regular AWS EC2 instances.
What does that mean? How much more is that? Is it more than a normal instance or is it more than a spot instance? Is it even possible to use spot instances? The price also depends on the OS. Linux instances are vastly chaper than Windows instances for example. So which OS do the clound nodes use?
Also, the FAQ says that it is possible to rent 2 different types of EC2 instances. Which types are that? I assume c4.8xlarge and c4.4xlarge?
Is there a downloadable price list somewhere?
I saw that it is possible to easily render Houdini scenes on AWS and have a few questions. In the FAQ it is stated that it is more expensive per computer hour than regular AWS EC2 instances.
What does that mean? How much more is that? Is it more than a normal instance or is it more than a spot instance? Is it even possible to use spot instances? The price also depends on the OS. Linux instances are vastly chaper than Windows instances for example. So which OS do the clound nodes use?
Also, the FAQ says that it is possible to rent 2 different types of EC2 instances. Which types are that? I assume c4.8xlarge and c4.4xlarge?
Is there a downloadable price list somewhere?
Houdini Indie and Apprentice » Console Warning message
- samfisher
- 9 posts
- Offline
Hi,
I´ve started learning Houdini yesterday and there is a Warning message that keeps popping up iin the Console. It states:
Warning: There is no hotkey for h.tool:sop_visibility
I believe that this started after I customized the hotkeys to my liking.
Is this bad and how can I resolve the problem? I wouldn´t care too much about it but the Console keeps popping up and covers parts of the UI.
I´ve started learning Houdini yesterday and there is a Warning message that keeps popping up iin the Console. It states:
Warning: There is no hotkey for h.tool:sop_visibility
I believe that this started after I customized the hotkeys to my liking.
Is this bad and how can I resolve the problem? I wouldn´t care too much about it but the Console keeps popping up and covers parts of the UI.
-
- Quick Links