Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

kiaspid

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

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. 

4 people like this

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
1 person likes this

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