Questions tagged [vex]

VEX is a high-performance expression language used in many places in Houdini. VEX evaluation is typically very efficient giving performance close to compiled C/C++ code. VEX is not an alternative to scripting, but rather a smaller, more efficient general purpose language for writing shaders and custom nodes. VEX is loosely based on the C language, but takes ideas from C++ as well as the RenderMan shading language.

VEX is a high-performance expression language used in Houdini. VEX evaluation is typically very efficient giving performance close to compiled C/C++ code. VEX is not an alternative to scripting, but rather a smaller, more efficient general purpose language for writing shaders and custom nodes.

VEX is loosely based on the C language, but takes ideas from C++ as well as the RenderMan shading language.

Resources

8 questions
1
vote
1 answer

How to find middle of a button on screen

Ok I'm coding a button. I have done the box collision and all of the other stuff. The problem I'm having is putting text in the middle of the button. No matter what I try it doesn't work :/ . Please help I'm bad at math. x = 120, y = 120, w = 120, h…
Void
  • 15
  • 1
  • 3
1
vote
1 answer

How to convert string to const char[] in c++

I am working on a C++ project for a Vex Robot, I am using a function that takes a const char[] but for showing an integer, there is no such function that converts to const char[], so is there a way to do that. All the search results showed how to…
Coder436
  • 31
  • 1
  • 9
1
vote
3 answers

How to remove points based on their attributes in Houdini?

I created a curve with several points. Now I want to delete some points based on one of their attribute (will_be_removed). As is shown in the picture above, those points with i@will_be_removed set to 1 will be removed. I tried using the VEX code…
John John
  • 111
  • 1
  • 4
0
votes
1 answer

Introduce cycles in a Minimal Spanning Tree

I'm using Houdini to create a dungeon generator and I've used Prim (I think) to calculate a Minimal Spanning Tree. Now I would like to introduce one or two loops to make it seem more natural. This is the code: int pts[] = expandpointgroup(0,…
0
votes
0 answers

Vex V5 C++ GPS sensor, driving to specific coordinates

Im trying to make a code using the GPS sensor that can drive to a specific coordinate using if statements. I've only done the X portion, and it works, but I'm looking for how I can stop checking the X statement, and move on to the Y: void driveTo…
0
votes
0 answers

Creating API gateway in Vlang/vweb

I am a new aspiring software developer (currently network engineer/sysadmin) treating Vlang as my first and hopefully main language of choice. I am trying to build an API gateway for pocketbase. This is my current code, i want the user to visit…
0
votes
0 answers

There is an error; "function definition is not allowed here (64,3)"

The bracket is located after int main (). This is for VEX robotics. I'm using VexCode V5 to program the Robot. This is C++. This code is to allow the robot to drive forward and backward, and also side ways using the specific kind of wheels needed.…
0
votes
1 answer

add a NEW value in a list

I have a problem with this VEX script. @ create attributes instead of variables. f[]@myList; // create list attribut float pavW = 0.0; for( int i = 1 ; i < 11 ; i++){ string path = "../widthPav" + itoa(i); pavW = ch(path); // take the value…
Vincent A
  • 85
  • 10