Jump to content

unable to evaluate expression for ronadom rock exercise


lyansart

Recommended Posts

Hi! I'm pretty new in Houdini, but I have to improve very quickly in 1 and a half month so i'm watching the basic tutorials in the sideFX site.

Following a lesson about digital assets I had to create different rocks and try to put them in a curve. But after uploading one single rock and trying to change the expression in $Hip/geo/rock_`padzero(3, ("../copy1", rockNum, 1))`.bgeo  it gives me this two errors

Unable to read file ".../.../geo/rock_001.bgeo"

Unable to evaluate expression (Bad data type for function or operation (/obj/sphere_object1/file1/file)).

why is that? i'm pretty sure this is a simple question but without having any professor I don't know who to ask.

thank you!

Edited by lyansart
Link to comment
Share on other sites

There is some strange looking construct used as the second argument of padzero function. From it appearance, it looks like a typical stamp function call, but without the stamp function name. Maybe someone cut it instead of copying. Try this:

padzero(3, stamp("../copy1", rockNum, 1))

 

  • Like 1
Link to comment
Share on other sites

thank you it was just the folder wrong, but yet even if I upload it, the rocks are still the same even with that expression. can you tell me why? Is something wrong with that? :\

my rockNumvalue is   ceil(rand($PT)*99)

Edited by lyansart
Link to comment
Share on other sites

I've tried but nothing changes.

sure I can, but there is a lot of files (as long I've created a lot of rocks) So.. I can post them all, hoping that's okay.

thank you so much.

sasso_001.bgeo

sasso_002.bgeo

sasso_003.bgeo

sasso_004.bgeo

sasso_005.bgeo

sasso_006.bgeo

sasso_007.bgeo

sasso_008.bgeo

sasso_009.bgeo

sasso_010.bgeo

sasso_011.bgeo

sasso_012.bgeo

sasso_013.bgeo

sasso_014.bgeo

sasso_015.bgeo

sasso_016.bgeo

sasso_017.bgeo

sasso_018.bgeo

sasso_019.bgeo

sasso_020.bgeo

sasso_021.bgeo

sasso_022.bgeo

sasso_023.bgeo

sasso_024.bgeo

sasso_025.bgeo

sasso_026.bgeo

sasso_027.bgeo

sasso_028.bgeo

sasso_029.bgeo

sasso_030.bgeo

sasso_031.bgeo

sasso_032.bgeo

sasso_033.bgeo

sasso_034.bgeo

sasso_035.bgeo

sasso_036.bgeo

sasso_037.bgeo

sasso_038.bgeo

sasso_039.bgeo

sasso_040.bgeo

sasso_041.bgeo

sasso_042.bgeo

sasso_043.bgeo

sasso_044.bgeo

sasso_045.bgeo

sasso_046.bgeo

sasso_047.bgeo

sasso_048.bgeo

sasso_049.bgeo

sasso_050.bgeo

sasso_051.bgeo

sasso_052.bgeo

sasso_053.bgeo

sasso_054.bgeo

sasso_055.bgeo

sasso_056.bgeo

sasso_057.bgeo

sasso_058.bgeo

sasso_059.bgeo

sasso_060.bgeo

sasso_061.bgeo

sasso_062.bgeo

sasso_063.bgeo

sasso_064.bgeo

sasso_065.bgeo

sasso_066.bgeo

sasso_067.bgeo

sasso_068.bgeo

sasso_069.bgeo

sasso_070.bgeo

sasso_071.bgeo

sasso_072.bgeo

sasso_073.bgeo

sasso_074.bgeo

sasso_075.bgeo

sasso_076.bgeo

sasso_077.bgeo

sasso_078.bgeo

sasso_079.bgeo

sasso_080.bgeo

sasso_081.bgeo

sasso_082.bgeo

sasso_083.bgeo

sasso_084.bgeo

sasso_085.bgeo

sasso_086.bgeo

sasso_087.bgeo

sasso_088.bgeo

sasso_089.bgeo

sasso_090.bgeo

sasso_091.bgeo

sasso_092.bgeo

sasso_093.bgeo

sasso_094.bgeo

sasso_095.bgeo

sasso_096.bgeo

sasso_097.bgeo

sasso_098.bgeo

sasso_099.bgeo

sasso_100.bgeo

rock_doesntvariate.hipnc

Link to comment
Share on other sites

There was a typo in rockNum stamp expression (extra multiplication operator). And maybe an extra "rocks" folder in path, if you have no such structure inside your hip folder. Also make sure you checked Stamp Inputs on Copy node to use stamp. It won't throw an error, but will use default value (which is number "1" in stamp function call - check documentation about it).

Here is working example.

stamping_geo.zip

Link to comment
Share on other sites

10 hours ago, f1480187 said:

There was a typo in rockNum stamp expression (extra multiplication operator). And maybe an extra "rocks" folder in path, if you have no such structure inside your hip folder. Also make sure you checked Stamp Inputs on Copy node to use stamp. It won't throw an error, but will use default value (which is number "1" in stamp function call - check documentation about it).

Here is working example.

stamping_geo.zip

Thank you SO much, it's working for me too now.

I'm sorry I'm losing myself on those stupid errors.

Thank you again

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...