Bruno Kindt

Bruno Kindt

About Me

Connect

LOCATION
Belgium
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Exporting Data from Geometry Spreadsheet Aug. 9, 2018, 12:25 p.m.

SyntaxError in python Script Sop March 22, 2017, 2:39 p.m.

Hey,

I'm having trouble figuring out the ‘script’ node (Script Sop).
A simple box with a script node results in the following error:

Python error: SyntaxError: ('invalid syntax', ('', 1, 1, ‘/home/bruno.kindt/Library/projects/UE__BoilerRoom/BoilerRoom/Shop/scripts/test.py\n’))

even if the file is empty or has a simple `print “foo”` line.
I'm a bit suspicious about the ‘\n’ after the filename in the error message.

Point attribute updates within attribute wrangle March 8, 2017, 1:41 p.m.

If I create a grid, add a red color to all points and then add a “attribute wrangle” with

@Cd = rand(1 + @ptnum);
vector test = point(0, "Cd", @ptnum);
printf("test: %p\n ", test);


the result of printf is

test: {1,0,0}


for all points. Not some random color assigned in the first line.

Is this because
point(0, "Cd", @ptnum)
always refers to the attributes of the input geometry (independent of changes made within the attribute wrangle) or because the attribute changes only take effect after the expression completes ? Or both…

thanks,
Bruno