ZBrushCentral

Is it possible to change the "default" transform for an object?

That title isn’t very clear, so here’s a more detailed explanation of what I want to do. I’ll just talk about rotation, since that’s what I’m mostly interested.

Let’s say I create a 3D object such that the rotation is (0, 0, 0)–that’s a ‘front’ view of the object, and by restting the rotation to that value, I can always get back to the front view.

But now I decide that a different side of the object should really be the front view. But, for the simplicity of my script, I still want the front rotation to be (0,0,0). So after I rotate the object so the ‘new front side’ is facing the user, I have to ‘reset’ the object’s original transform, so that new rotation is now considered to be (0,0,0).

Is this possible?

Many thanks,
Ken

Example to rotate z axis

[IModSet,TOOL:DEFORMATION:RotateObject,4] [ISet,TOOL:DEFORMATION:RotateObject,90]

Yes, exactly what I was looking for, thank you! But how do I enter the smilies into a ZScript? :slight_smile:

Ken

It looks like I can resize an object in the same way using “Scale” in deformations. Now: is it possible to recenter an object? So far as I can tell, “Offset” doesn’t do it because it doesn’t actually change the center of the object–at least, the position of the Gyro doesn’t change.

What I’m trying to do is cause the center of the object to be at (m, n), without actually moving the object. This is desirable from the user’s point of view; it also allows me to set a mark at the center of the document, and then automatically activate it when the document is open, since it is a known position.

Thanks,
Ken

I doubt if it’s possible to change the center of the object without moving the object. The object would need to be in transform mode and, although the object wouldn’t move if Draw mode was on, the moment Move, Scale or Rotate was selected the object would move as its position on the canvas is defined by the object center.

Anyhow, you can change the object center by adjusting the Preview or using Deformation>Unify.