ZBrushCentral

Question: Could I get the global coordinate of Gizmo in specific subtool?

I’m sorry for the continuance question.
I’m stuck again. It would be great if you could share the infomation.

Could I get the “global coordinate” of Gizmo in specific subtool, and paste to another subtool?

I want to use the specific mesh like as the milestone to another subtool mesh.
So, I would like to make the macro something like above.
However, I have no idea to get the coordinate of Gizmo.

Might I ask what Zscript achive getting the coordinate?

You may be able to use [TransposeGet] and [TransposeSet] to do what you want. They work with the Gizmo as well as the Transpose action line. Take a look at those commands:
http://docs.pixologic.com/user-guide/customizing-zbrush/zscripting/command-reference/#TransposeGet

1 Like

Aha! Transpose Line! I searched only the word “Gizmo” in documents and web searches.
I’m sorry for my stupid, however you answered kindly. My hope. If your answer is not here, I stuck forever.
Thank you for answering!

I would like to make small macro of “Gizmo copy and paste to other subtool”. If this is “reinventing the wheel”, I’m really sorry to disturb. (and I realize transpose line has global position between subtools. But, I want to achive this macro!)

I don’t know why this “almost copy and paste” macro return the wrong turned over gizmo to other subtools. I will really appreciate please give me a hint to this.

(sorry for wierd “qwfoo” “qwbar” variables.)
GizmoCopy.txt

//ZBRUSH MACRO - Recorded in ZBrush version 2020

//need "Rtem" folder
[IButton,???,"Copy the Gizmo and Transpose Position.",
	[IShowActions,0]
	[IConfig,2021]

	// [VarDef, qwSTN, [SubToolGetCount]]
	 [VarSet, qwxPos, 0]
	 [VarSet, qwyPos, 0]
	 [VarSet, qwzPos, 0]
	 [VarSet, qwRedx, 0]
	 [VarSet, qwRedy, 0]
	 [VarSet, qwRedz, 0]
	 [VarSet, qwGreenx, 0]
	 [VarSet, qwGreeny, 0]
	 [VarSet, qwGreenz, 0]
	 [VarSet, qwBluex, 0]
	 [VarSet, qwBluey, 0]
	 [VarSet, qwBluez, 0]
	 [VarSet, qwendx, 0]
	 [VarSet, qwendy, 0]
	 [VarSet, qwendz, 0]
	 [VarSet, qwTLength, 0]

	[TransposeGet, qwxPos, qwyPos, qwzPos,
	 qwendx,qwendy,qwendz,qwTLength,//終端側の位置、そして長さ
	 qwRedx,qwRedy,qwRedz,
	 qwGreenx,qwGreeny,qwGreenz,
	 qwBluex,qwBluey,qwBluez
	 ]
	[VarSet, qwFFLUSH, [StrMerge,"x:",qwxPos,
	", y:",qwyPos,
	", z:",qwzPos
	  ]]
	[Note,  qwFFLUSH]
	[VarSave, qwxPos, "Rtem/qwxPos"]
	[VarSave, qwyPos, "Rtem/qwyPos"]
	[VarSave, qwzPos, "Rtem/qwzPos"]
	[VarSave, qwRedx, "Rtem/qwRedx"]
	[VarSave, qwRedy, "Rtem/qwRedy"]
	[VarSave, qwRedz, "Rtem/qwRedz"]
	[VarSave, qwGreenx, "Rtem/qwGreenx"]
	[VarSave, qwGreeny, "Rtem/qwGreeny"]
	[VarSave, qwGreenz, "Rtem/qwGreenz"]
	[VarSave, qwBluex, "Rtem/qwBluex"]
	[VarSave, qwBluey, "Rtem/qwBluey"]
	[VarSave, qwBluez, "Rtem/qwBluez"]
	[VarSave, qwendx, "Rtem/qwendx"]
	[VarSave, qwendy, "Rtem/qwendy"]
	[VarSave, qwendz, "Rtem/qwendz"]
	[VarSave, qwTLength, "Rtem/qwTLength"]
]

GizmoPaste.txt

//ZBRUSH MACRO - Recorded in ZBrush version 2020
[IButton,???,"Press to run this macro. Macros can be aborted by pressing the ëescí key.",
	[IShowActions,0]
	[IConfig,2021]

	 [VarSet, qwxPos, 0]
	 [VarSet, qwyPos, 0]
	 [VarSet, qwzPos, 0]
	 [VarSet, qwRedx, 0]
	 [VarSet, qwRedy, 0]
	 [VarSet, qwRedz, 0]
	 [VarSet, qwGreenx, 0]
	 [VarSet, qwGreeny, 0]
	 [VarSet, qwGreenz, 0]
	 [VarSet, qwBluex, 0]
	 [VarSet, qwBluey, 0]
	 [VarSet, qwBluez, 0]
	 [VarSet, qwendx, 0]
	 [VarSet, qwendy, 0]
	 [VarSet, qwendz, 0]
	 [VarSet, qwTLength, 0]


	[VarLoad, qwxPos, "Rtem/qwxPos"]
	[VarLoad, qwyPos, "Rtem/qwyPos"]
	[VarLoad, qwzPos, "Rtem/qwzPos"]
	[VarLoad, qwRedx, "Rtem/qwRedx"]
	[VarLoad, qwRedy, "Rtem/qwRedy"]
	[VarLoad, qwRedz, "Rtem/qwRedz"]
	[VarLoad, qwGreenx, "Rtem/qwGreenx"]
	[VarLoad, qwGreeny, "Rtem/qwGreeny"]
	[VarLoad, qwGreenz, "Rtem/qwGreenz"]
	[VarLoad, qwBluex, "Rtem/qwBluex"]
	[VarLoad, qwBluey, "Rtem/qwBluey"]
	[VarLoad, qwBluez, "Rtem/qwBluez"]
	[VarLoad, qwendx, "Rtem/qwendx"]
	[VarLoad, qwendy, "Rtem/qwendy"]
	[VarLoad, qwendz, "Rtem/qwendz"]
	[VarLoad, qwTLength, "Rtem/qwTLength"]


	[TransposeSet, qwxPos, qwyPos, qwzPos,
	 qwendx,qwendy,qwendz,qwTLength,//終端側の位置、そして長さ
	 qwRedx,qwRedy,qwRedz,
	 qwGreenx,qwGreeny,qwGreenz,
	 qwBluex,qwBluey,qwBluez
	 ]
	[VarSet, qwFFLUSH, [StrMerge,"x:",qwxPos,
	", y:",qwyPos,
	", z:",qwzPos
	  ]]