Jump to content

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×