hi all..
I wrote a SOP to rotate a primitive about an axis defined by its first and last points. Since it isn't modifying geometry i used VEX for its portability and speed, but there doesn't seem to be a way to define or use local variables in the parameters. Looked about and, judging by a post at http://forums.odforce.net/index.php?/topic/8200-vex-sop-and-local-variables/, [forums.odforce.net] this feature may not be supported.
Maybe i'm missing something or there is an easier/better way to do this task?
I could use Python or C++, but the operation in question is performed frequently. Is there a convenient way to add parallelism to HDK SOPs running on the CPU?
thanks!
VEX and local variables
5228 6 1- david_aiken
- Member
- 86 posts
- Joined: Sept. 2008
- Offline
- wolfwood
- Member
- 4271 posts
- Joined: July 2005
- Offline
- david_aiken
- Member
- 86 posts
- Joined: Sept. 2008
- Offline
ah.. i see. Thanks - that will work fine for my purposes. Now i just have to figure out how to access the positions of the first and last points in the primitive to put the vector between them into an attribute. I don't see a way to do this using the Primitive or AttribCreate SOPs.. perhaps i miss something. Is there a way to do this using existing components?
I installed a skylight in my apartment… the people who live above me are furious!
- Steven Wright
- Steven Wright
- brianBurke
- Member
- 192 posts
- Joined: Nov. 2008
- Offline
- david_aiken
- Member
- 86 posts
- Joined: Sept. 2008
- Offline
- david_aiken
- Member
- 86 posts
- Joined: Sept. 2008
- Offline
- brianBurke
- Member
- 192 posts
- Joined: Nov. 2008
- Offline
-
- Quick Links