Grasshopper

algorithmic modeling for Rhino

I just want to make a " x² " expression on Evaluate expression designer and I CANT!

Oh gosh, somebody help me... I just want to make a simple function, with one variable: x², and it appears the error message: 1. Parameter "Variable x" has an invalid name. Only use alphanumeric characters and don't start with a number.

What am I doing wrong? How should I write the expression? 

Thanks

Views: 10477

Replies to This Discussion

Try not to use "Draw Full Names".

When you use Full Names the "Variable name" is not "x" anymore.

If you deselect that function in the Display options and reconnect the expression panel and number, it should work.

The problem here is not with the specific notation. It's with the variable name. Variables are not allowed to contain spaces or weird characters, and both your variables are invalid. "Variable x" is no good. You need to remove the "Variable" part and only name it "x".

The error message is pretty explicit about this:

This is probably because you're using the 'Draw Full Names' option which does not play nice with expression variable parameters. You'll have to manually fix the names before any expression will run.

Wowwwww!!!! IT WORKED!!!! THANK YOU SO MUCH!!!!!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service