# nguyenvuquocan

Members

6

0 Neutral

• Rank
Peon

• Name
Quoc An
• Location
Viet Nam
1. ## Create point on the middle of a primitive

Prim wrangle 1 : int pts[] = primpoints(0,@primnum); vector center = 0; foreach(int pt;pts){ center += point(0,"P",pt); } center /= len(pts); v@center = center; Wrangle 2 ( run in detail ) : int nprim = nprimitives(0); for(int i = 0; i < nprim; i++){ vector center = prim(0,"center",i); int pt = addpoint(0,center); } or you can use two Sop : Enumerate Sop and Extract Centroid sop to do that .
2. ## How to show sim details for Houdini??

File Sop > Load Tap > Info . " Creates one point if the file loads successfully and attach attributes for each named component of the meta-data. "
3. ## DIfference or angle between two quaternions

Hi all master . I have two quaternions. How can i find DIfference or angle between two quaternions in vex ?. Thank you.
4. ## Same value in an attribute.

Hi all master. I have a lot of points . And every point have same an attribute. But in some points , it have the same value . For example , point 0 , point 9 and point 30 have attribute "a" = 30 . How can i get another attribute have value = 3 ?. Thank you.
5. ## Get An Attribute equal to Frame

Thank for help bro . But @Frame is alway change . I mean if i hava a point , this point has an attribute : A . And when Frame < 50 A = 0 . when Frame >= 50 A = 1 . And when A = 1 , has an attribute B and this attribute return 50. Sorry because my skill english so bad :'( . Hope you understand what i say .
6. ## Get An Attribute equal to Frame

Hi all master . I have a question . For example , i have a point , this point unhide at Frame 173 or 250 or a random frame . How can i get an attribute equal at this Frame ?. And if i have many points , how can i get it for every points ? . Please check image in bellow . Thank you .
×
• Donations