Screenglow VFX Posted June 13, 2018 Share Posted June 13, 2018 (edited) Hey guys, Easy problem (I am missing something).I calculate "ratio" detail attribute to use for scaling an object.Works fine,but in the display value tab (transform node) ,shows 0 value when I put inside @ratio (but it works OK).What am I missing? tks What would be the best approach to have it much efficient - storing dimensions,center of objects (maybe not writing detail atribs).Also ,was considering not using bbox function,because later on I will have long calculation expressions. easy_question.hipnc Edited June 13, 2018 by Screenglow VFX Quote Link to comment Share on other sites More sharing options...
bunker Posted June 13, 2018 Share Posted June 13, 2018 You can't use @ratio directly in a paramater you have to use a detail hscript expression instead: detail(opinputpath(".",0),"ratio",0) or you can scale directly in vex if you run over points instead of detail vector size = getbbox_size(0); @P *= size.x/size.z; Quote Link to comment Share on other sites More sharing options...
Screenglow VFX Posted June 13, 2018 Author Share Posted June 13, 2018 Thanks.Make sense. However @ratio directly used is working but not displaying the value. What would be the best practice when modeling in order to avoid endless bbox functions? Vex? Tks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.