kiaspid Posted July 15, 2017 Share Posted July 15, 2017 hi, I try to centroid pivot of copied object but $CE command not work and got an error: Error Unable to evaluate expression (Expression stack error (/obj/The_sim/copy1/tx)). Error Unable to evaluate expression (Undefined variable (/obj/The_sim/copy1/px)). Error Unable to evaluate expression (Undefined variable (/obj/The_sim/copy1/py)). Error Unable to evaluate expression (Undefined variable (/obj/The_sim/copy1/pz)). Quote Link to comment Share on other sites More sharing options...
adrianr Posted July 15, 2017 Share Posted July 15, 2017 Tried centroid? Laziest way you can write it is centroid(0,0), centroid(0,1), centroid(0,2) for x y z. The tooltip that pops up says use a string for geo and then D_X, D_Y and D_Z but you can drop the string for 0 and the rest for 0 1 2. 4 Quote Link to comment Share on other sites More sharing options...
dudenay Posted July 15, 2017 Share Posted July 15, 2017 (edited) Maybe you can try with Vex attributes: @cent.x ; @cent.y ; @cent.z instead of $CEX ; $CEY ; $CEZ I hope this will help. Edited July 15, 2017 by dudenay 1 Quote Link to comment Share on other sites More sharing options...
kiaspid Posted July 15, 2017 Author Share Posted July 15, 2017 thank you so much, it worked. Quote Link to comment Share on other sites More sharing options...
kiaspid Posted July 15, 2017 Author Share Posted July 15, 2017 1 hour ago, dudenay said: Maybe you can try with Vex attributes: @cent.x ; @cent.y ; @cent.z instead of $CEX ; $CEY ; $CEZ I hope this will help. thank you so much, it worked. Quote Link to comment Share on other sites More sharing options...
kiaspid Posted July 15, 2017 Author Share Posted July 15, 2017 14 hours ago, adrianr said: Tried centroid? Laziest way you can write it is centroid(0,0), centroid(0,1), centroid(0,2) for x y z. The tooltip that pops up says use a string for geo and then D_X, D_Y and D_Z but you can drop the string for 0 and the rest for 0 1 2. thank you. it worked. centroid("../The_Room",D_X) 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.