Found 595 posts.
Search results Show results as topic list.
Technical Discussion » How to use a virtual environment's python instead of the one that ships with houdini?
- pelos
- 621 posts
- Offline
is there a particular reason why you want to use your own environment instead the one that comes with Houdini?
Technical Discussion » Python 3 Support
- pelos
- 621 posts
- Offline
you can install python 3 in the pc,
use houdini python2 to run a python3 as a subprocess,
the python 3 can do the tensorflow and the python2 is just a runner
os.popen.subprocess(“python3 file.py -args….”)
or a vm with linux and put houdini, python, tensorflow etc… all the stuff you need, not something that i think is a great idea since the VM use a lot of Ram, that you might end up needing for houdini process.
this are just quick ideas that came to my mind.
use houdini python2 to run a python3 as a subprocess,
the python 3 can do the tensorflow and the python2 is just a runner
os.popen.subprocess(“python3 file.py -args….”)
or a vm with linux and put houdini, python, tensorflow etc… all the stuff you need, not something that i think is a great idea since the VM use a lot of Ram, that you might end up needing for houdini process.
this are just quick ideas that came to my mind.
Technical Discussion » Python 3 Support
- pelos
- 621 posts
- Offline
what is the thing you required with python3 that you cant do with python2? if is any library, you can just import it to your python script, beside print() using parenthesis everything else is an internal change, (mostly working range that will become generators instead lists)
when you install python already comes with pip / easy install,
when you install python already comes with pip / easy install,
Technical Discussion » Visual Code Python Environment no PyLint, no hou module
- pelos
- 621 posts
- Offline
you might be using visualCode as IDE, but the compiler might be pointing to the regular python folder, you might need to change the python interpreter to use the one that comes inside Houdini folder
Edited by pelos - May 10, 2019 16:34:31
Technical Discussion » Hair grooming - separate root lift
- pelos
- 621 posts
- Offline
not sure how helpfull is it, but in the mean time you could lift the curve primitive by the closest normal of the skin, create point there, and added to the hair curve and make it a root.
(I think there is a lift under the groom hair node)
(I think there is a lift under the groom hair node)
Technical Discussion » Resample fur
- pelos
- 621 posts
- Offline
your questions is not about fur/hair
the resample node will let you specify how many points per curve you want,
before resample you could group the short that needs 4 points, and the other that need 8 points, base LENARC.
the resample node will let you specify how many points per curve you want,
before resample you could group the short that needs 4 points, and the other that need 8 points, base LENARC.
Technical Discussion » how to chop lag base on an attribute per point?
- pelos
- 621 posts
- Offline
well if you see the original length of the curve than after the chop is way shorter like the initial geometry changed
I put an example mixing with a vopsop but I wonder how to do all in chops
I put an example mixing with a vopsop but I wonder how to do all in chops
Edited by pelos - Jan. 17, 2019 02:58:37
Technical Discussion » how to chop lag base on an attribute per point?
- pelos
- 621 posts
- Offline
I am trying to lag a line, but I want to affect the points base on an a ramp attribute, this is what I have so far.
Technical Discussion » how can initialize an array of arrays in vex?
- pelos
- 621 posts
- Offline
mmm can I make a dictionary where values are arrays?
something like that?
mydic{} dic[0]= [1,2,3....]
Edited by pelos - Jan. 6, 2019 23:10:28
Technical Discussion » how can initialize an array of arrays in vex?
- pelos
- 621 posts
- Offline
how can initialize an array of arrays in vex?
i know in python would look like
my_array =
for i in range(4):
my_array.append()
print(my_array)
>>>[ , , , , ]
this is how i am trying to do in vex
int liners;
for(int l = 0; l < ch(“loops”); ++l){
int mini_liner;
push(liners, mini_liner);
};
but when i printf i just get
{}
and that's it i was expecting something like {{}, {}, {} }
i know in python would look like
my_array =
for i in range(4):
my_array.append()
print(my_array)
>>>[ , , , , ]
this is how i am trying to do in vex
int liners;
for(int l = 0; l < ch(“loops”); ++l){
int mini_liner;
push(liners, mini_liner);
};
but when i printf i just get
{}
and that's it i was expecting something like {{}, {}, {} }
Technical Discussion » Getting the angle between two 3d vectors in VOP
- pelos
- 621 posts
- Offline
thanks symek, just used you trick
I will just add
VEX
float angle = degrees(acos(dot(normal_pt, nn_pt)));
in case you need it on degrees
symek
angle = acos(dot(normalize(v1),normalize(v2)))
I will just add
VEX
float angle = degrees(acos(dot(normal_pt, nn_pt)));
in case you need it on degrees
Technical Discussion » how can i put a list of strings into a detail attribute with python?
- pelos
- 621 posts
- Offline
strange I was doing
geo.addAttrib(hou.attribType.Global, “connections”, ) and did work, but didn't work with strings,
thanks
geo.addAttrib(hou.attribType.Global, “connections”, ) and did work, but didn't work with strings,
thanks
Technical Discussion » how can i put a list of strings into a detail attribute with python?
- pelos
- 621 posts
- Offline
I am working in a python node, and created a list of strings that I will be using in the next node (attrib wrangler).
maybe I can store it in a different way?
maybe I can store it in a different way?
Technical Discussion » resample a polyline in vex
- pelos
- 621 posts
- Offline
is there a function to resample a polyline same as the resample node?
that can give options of putting n points or putting every distance?
thanks guys
that can give options of putting n points or putting every distance?
thanks guys
Technical Discussion » how to find the closest number in geometry (with out considering the current pt)
- pelos
- 621 posts
- Offline
Technical Discussion » how to find the closest number in geometry (with out considering the current pt)
- pelos
- 621 posts
- Offline
I found something like this but it hast to calculate pops
there is a proximity node inside pops basically that's what I want but with out having to cache it by frames
there is a proximity node inside pops basically that's what I want but with out having to cache it by frames
Technical Discussion » how to find the closest number in geometry (with out considering the current pt)
- pelos
- 621 posts
- Offline
I am using near point/expression, but for each point on the loop it return itself, so when it get to the loops grabs point zero position and look for the closest point, and that same point been exactly at the same place it pick up as the closest,
I was expecting the “near point” to look for the nearest point excluding itself(the current point in the loop)
in my example for point zero the closest point is number 10
this is my hip example, how can I find the near point using the same geometry?
(later on I want to be able to select the nearest if they belong to a group, that way I can find the closest root to each root)
I was expecting the “near point” to look for the nearest point excluding itself(the current point in the loop)
in my example for point zero the closest point is number 10
this is my hip example, how can I find the near point using the same geometry?
(later on I want to be able to select the nearest if they belong to a group, that way I can find the closest root to each root)
Edited by pelos - Dec. 29, 2018 22:03:12
Technical Discussion » Fur Sticks to Collision Object
- pelos
- 621 posts
- Offline
if they stretch increase the sub sample a and test, that helps a lot since evaluate in between frames and avoid the points of the curve to penetrate the solid object.
Technical Discussion » Long Hair Scene?
- pelos
- 621 posts
- Offline
Technical Discussion » Finite Element constraint to animated object
- pelos
- 621 posts
- Offline
I haven't found a way to attach/constrain a FEM to a moving object tought the regular constrain nodes might do the trick but none of them worked for me.
-
- Quick Links