I would like to record the button above gizmo, but I could’t.
Is there way to world-reset the rotation and posion of gizmo by script?
Hi , for move/rot the gizmo 3d without to affect the geometry, you can mask all and then use the [TransposeSet]
[TransposeSet,Start xPos,Start yPos,Start zPos,End xPos,End yPos,End zPos,Action Line Length,x of red axis,y of red axis,z of red axis,x of green axis,y of green axis,z of green axis,x of blue axis,y of blue axis,z of blue axis]
Sets current Transpose Action Line values.
Hope it helps,
Nicolas
Thank you!
This is what I can’t understand.
[TransposeSet,0,0,0,
0,0,0.25,
0.25,
1,0,0,
0,-1,0,
0,0,1]
//the value from world resetted gizmo
When you have a already moved transposeline somewhere, and run this code,
XYZ of transpoose-line rotate every time.
“of red(blue, green) axis” , is vector or something?
This is working for me.
[IButton, "zplugin:ZPR Alternative:reset gizmo", ".",
[TransposeSet, 0,0,0,0,0,1,1]
,,1]
Do not forget a line and composed by start point and the end point. so if you don’t move the end point this will always sett the first position and never the end point
Hope it helps,
Nicolas
Thank you, your script does not rotate every time, however, it can’t reset “this (below)”. (if the transpose-line has already some rotated axis)
and, I want reset “this (below)”.
My stacked point is it.
when I set the static value to “xyz of red(blue, grenn) axis”, the XYZ line is rotated every time every run, despite of static value.