Hi,
I have this recurrent problem with TransformSet in conjunction with rotating the Y-axes Front>Left>Back>Right>Front
Logic states that I just have to change the yRot from 0 to 45 to 180 to 270 to do this, but - as you can see in the script from 90 degrees to the left the raotation needs a ZRot=180 to stay with the good side up!
Please some enlightening commend:
[IConfig,3.1]
[ISubPalette,“Zplugin:View”]
[IButton,“Zplugin:View:Front_Z=0”,
“89DegreesLeft”,
//Commands group to execute when button is pressed,
[TransformSet, (Document:Width*.5), (Document:Height*.5), 0, 100, 100, 100, 0, 0, 0]
[ipress,transform:scale edit]
,80
]
[IButton,“Zplugin:View:Front_Z=180”,
“89DegreesLeft”,
//Commands group to execute when button is pressed,
[TransformSet, (Document:Width*.5), (Document:Height*.5), 0, 100, 100, 100, 0, 0, 180]
[ipress,transform:scale edit]
,80
]
[IButton,“Zplugin:View:45Left_Z=0”,
“89DegreesLeft”,
//Commands group to execute when button is pressed,
[TransformSet, (Document:Width*.5), (Document:Height*.5), 0, 100, 100, 100, 0, 45, 0]
[ipress,transform:scale edit]
,80
]
[IButton,“Zplugin:View:45Left_Z=180”,
“89DegreesLeft”,
//Commands group to execute when button is pressed,
[TransformSet, (Document:Width*.5), (Document:Height*.5), 0, 100, 100, 100, 0, 45, 180]
[ipress,transform:scale edit]
,80
]
[IButton,“Zplugin:View:89Left_Z=0”,
“89DegreesLeft”,
//Commands group to execute when button is pressed,
[TransformSet, (Document:Width*.5), (Document:Height*.5), 0, 100, 100, 100, 0, 89, 0]
[ipress,transform:scale edit]
,80
]
[IButton,“Zplugin:View:89Left_Z=180”,
“89DegreesLeft”,
//Commands group to execute when button is pressed,
[TransformSet, (Document:Width*.5), (Document:Height*.5), 0, 100, 100, 100, 0, 89, 180]
[ipress,transform:scale edit]
,80
]
[IButton,“Zplugin:View:90Left_Z=0”,
“Vanaf 90DegreesLinks”,
//Commands group to execute when button is pressed,
[TransformSet, (Document:Width*.5), (Document:Height*.5), 0, 100, 100, 100, 0, 90, 0]
[ipress,transform:scale edit]
,80
]
[IButton,“Zplugin:View:90Left_Z=180”,
“Vanaf 90DegreesLinks”,
//Commands group to execute when button is pressed,
[TransformSet, (Document:Width*.5), (Document:Height*.5), 0, 100, 100, 100, 0, 90, 180]
[ipress,transform:scale edit]
,80
]
[IButton,“Zplugin:View:120Left_Z=0”,
“Vanaf Onderen”,
//Commands group to execute when button is pressed,
[TransformSet, (Document:Width*.5), (Document:Height*.5), 0, 100, 100, 100, 0, 120, 0]
[ipress,transform:scale edit]
,80
]
[IButton,“Zplugin:View:120Left_Z=180”,
“Vanaf Onderen”,
//Commands group to execute when button is pressed,
[TransformSet, (Document:Width*.5), (Document:Height*.5), 0, 100, 100, 100, 0, 120, 180]
[ipress,transform:scale edit]
,80
]
EddyL