Jump to content

Debug vex print to console why is this confusing?


Recommended Posts

I'm learning Houdini. And I'm getting my feet wet with vex. The problem I'm having is I don't understand how to get good feedback on the code I'm writing. In previous scripting environments I have worked with, the good ones have an easy way to print messages for debugging. With Houdini and vex this seems to be mysterious. I can't find how to open the console. I have made the console appear in vops using the print node and ticking the open text to console check box. But I haven't been able to get any useful feed back from vex. 

The documentaion has a print function which says it prints to the console. I can't make this work. I guess I don't understand when the code is compiled or run. for instance in a attribwrangle if I put the following code:

string a = "hello";

print("label", a);

nothing happens. I tried playing the timeline. not sure how to make this work.

I have also tried:
string a = "hello";

printf("%s\n", a); 

 

I'm obviously confused here and would appreciate a point in the right direction on how to make vex print messages to the console. 

 

thanks a lot. 

Edited by bonassus
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...