Attribute Wrangle

   3045   4   1
User Avatar
Member
6 posts
Joined: Sept. 2015
Offline
https://vimeo.com/116364169 [vimeo.com]
Hi guys I´m doing this tutorial(h15), and got myself stuck in this thing, maybe is just a simple and stupid problem but I can´t go on.
When I typed the

f@elev = ch ('elev')1

I got some errors and I can´t go on
The wrangle tell me the number 1 is wrong at the end of phrase
When I cut the number and go to the second part and typed
i@boundary = 1;
My wrangle is still telling that have some errors.

Thanks a lot guys for any help

Attachments:
Screen Shot 2016-02-25 at 5.38.12 PM.png (108.7 KB)

Ronaldo Pucci
www.ronaldoluis.com
User Avatar
Member
459 posts
Joined: Oct. 2011
Offline
I think you need a semicolon at the end of the line and no space after “ch”:
f@elev = ch('elev');

-b
http://www.racecar.no [www.racecar.no]
User Avatar
Member
68 posts
Joined: Sept. 2014
Offline
I think you also need the quotation marks

float max_dist = ch(“max_dist”);
User Avatar
Staff
2593 posts
Joined: July 2005
Offline
w_maro
I think you also need the quotation marks

float max_dist = ch(“max_dist”);

VEX, like Python, recognizes either type of quotation mark (provided they match). In the next major release, VEX will also recognize C++11 style strings (i.e.
string foo = R“(This is a string with ” and ' characters in it.
Even new lines.)";

But you'll have to wait until the next major release of Houdini for C++11 strings.
User Avatar
Member
6 posts
Joined: Sept. 2015
Offline
Yep, the problem is only that.
I was out, doing some freelancer jobs and come back for the studies today, thanks for all your help guys!!!
Ronaldo Pucci
www.ronaldoluis.com
  • Quick Links