Jump to content
kiaspid

$CEX $CEY $CEZ NOT WORK in v16.0504

Recommended Posts

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

1.png

2.png

3.png

Share this post


Link to post
Share on other sites

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. 

  • Like 4

Share this post


Link to post
Share on other sites

Maybe you can try with Vex attributes:

@cent.x ; @cent.y ; @cent.z instead of $CEX ; $CEY ; $CEZ

I hope this will help.

Edited by dudenay
  • Like 1

Share this post


Link to post
Share on other sites
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. ^_^

Share this post


Link to post
Share on other sites
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)

 

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

×