ZBrushCentral

Keep gizmo orientation when moving?

Hi all you wonderful scripters,

I’m trying to move the gizmo with a script. the position moves just fine, but the orientation changes. I have a suspicion that it’s because moving the gizmo moves the first point of the transpose line, but not the second point and so the gizmo ends up “looking” towards the original point rather than moving the second point the same amount. Does anyone know how I could accomplish that?

I get the coordinates where I want to put the gizmo with:

[VarSet,xPos,[IGet,Tool:Geometry:X Position]]
[VarSet,yPos,[IGet,Tool:Geometry:Y Position]]
[VarSet,zPos,[IGet,Tool:Geometry:Z Position]]

and I place it with:

[TransposeSet,xPos,yPos,zPos]

thanks!

nevermind! I got it. I made a variable that compared the difference between the original and ending gizmo location, then offset the transpose line endpoint by the same offset and it works great!

3 Likes