Jump to content

Procedural Road Creation


Recommended Posts

Hello guys!
I'm new here so i have some stupid questions.

I did the procedural road ctreation tutorial by cmiVFX and in the step when author did uv for each elements separately,my expression stopped working.
It works in xform4 but when i'm trying to paste copied relative references in xform5 i have an error. :( 
And i dont have an idea why it's no working.
In the original project file from tutorial it doesn't work to.
Help me please!
How can i solve this problem? If i cant solve this by this expression could you tell me another? :unsure: 
Thank you very much!
P.s.
Expression:1/if($SIZEZ > if($SIZEX > $SIZEY, $SIZEX, $SIZEY),$SIZEZ ,if($SIZEX > $SIZEY, $SIZEX, $SIZEY))

Road_20.07v2.hip

post-14147-0-10440300-1437539289_thumb.p

post-14147-0-45502300-1437539293_thumb.p

post-14147-0-75443800-1437539296_thumb.p

post-14147-0-08091200-1437539300_thumb.p

post-14147-0-49548400-1437539303_thumb.p

Edited by HoudiniFX
Link to comment
Share on other sites

If I'm not mistaken, it seems you can't reference a parameter with a parameter controlled by an expression anymore.

 

http://forums.odforce.net/topic/16159-what-is-the-reasoning-behind-the-variable-behavior/page-2#entry99130

 

It would be pretty tough to come up with a work around without really diving into the asset.  You could try emailing cmivfx, they should be able to suggest a work around.

Edited by captain
Link to comment
Share on other sites

  • 2 weeks later...

Replace all $SIZEX $SIZEY $SIZEZ expressions with the "bbox()" expression.

 

e.g.

bbox(opinputpath(".",0),D_XSIZE)

bbox(opinputpath(".",0),D_YSIZE)

bbox(opinputpath(".",0),D_ZSIZE)

 

Feel free to replace the "opinputpath" section with the path of the node you want to read the parameters from.

It's definitely more tedious, but it works.

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