Skip to content

Commit e1343b2

Browse files
committed
v1.04-for-beta20
+[.anm2] Now respects `obj.sx`, `obj.sy` and `obj.sz`, instead of `obj.zoom` and `obj.aspect`.
1 parent a2722e4 commit e1343b2

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

PixelSnap_S.anm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ https://mit-license.org/
2424
]]
2525

2626
--
27-
-- VERSION: v1.03
27+
-- VERSION: v1.04
2828
--
2929

3030
local obj, math = obj, math;

PixelSnap_S.anm2

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,24 @@ SOFTWARE.
2323
https://mit-license.org/
2424
]]
2525

26-
--information: PixelSnap_S v1.03 (for beta13) by σ軸
26+
--information: PixelSnap_S v1.04 (for beta20) by σ軸
2727
--label:配置
2828
local obj, math = obj, math;
2929
local cx0, cy0 = obj.cx + obj.getvalue("cx") + obj.w / 2, obj.cy + obj.getvalue("cy") + obj.h / 2;
3030
local cx, cy = math.floor(0.5 + cx0 + cy0), math.floor(0.5 + cx0 - cy0);
3131
cx, cy = (cx + cy) / 2, (cx - cy) / 2;
3232

33-
local zoom, aspect, rx, ry, rz =
34-
obj.zoom * obj.getvalue("zoom") / 100, obj.getvalue("aspect"),
33+
local rx, ry, rz =
3534
math.pi / 180 * (obj.rx + obj.getvalue("rx")),
3635
math.pi / 180 * (obj.ry + obj.getvalue("ry")),
3736
math.pi / 180 * (obj.rz + obj.getvalue("rz"));
3837
local c_x, s_x, c_y, s_y, c_z, s_z =
3938
math.cos(rx), math.sin(rx), math.cos(ry), math.sin(ry), math.cos(rz), math.sin(rz);
4039
local dx, dy, dz = cx - cx0, cy - cy0, 0;
4140
dx, dy, dz =
42-
dx * zoom * math.min(1 - obj.aspect, 1) * math.min(1 - aspect, 1),
43-
dy * zoom * math.min(1 + obj.aspect, 1) * math.min(1 + aspect, 1),
44-
dz * zoom;
41+
obj.sx * obj.getvalue("sx") * dx,
42+
obj.sy * obj.getvalue("sy") * dy,
43+
obj.sz * obj.getvalue("sz") * dz;
4544
dx, dy = c_z * dx - s_z * dy, s_z * dx + c_z * dy;
4645
dz, dx = c_y * dz - s_y * dx, s_y * dz + c_y * dx;
4746
dy, dz = c_x * dy - s_x * dz, s_x * dy + c_x * dz;

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
http://spring-fragrance.mints.ne.jp/aviutl
2626

27-
- `beta13` で動作確認済み.
27+
- `beta20` で動作確認済み.
2828

2929
## 導入方法
3030

@@ -66,7 +66,7 @@
6666

6767
```lua
6868
--
69-
-- VERSION: v1.02
69+
-- VERSION: v1.04
7070
--
7171
```
7272

@@ -101,6 +101,10 @@
101101

102102
## 改版履歴
103103

104+
- **v1.04 (for beta20)** (2025-11-16)
105+
106+
- AviUtl ExEdit2 版で,beta20 における拡大率の仕様変更に対応.
107+
104108
- **v1.03 (for beta13)** (2025-09-29)
105109

106110
- AviUtl ExEdit2 版でグループ制御に付けた場合の動作を変更.

0 commit comments

Comments
 (0)