Files
2025-07-31 16:05:55 +08:00

56 lines
1010 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
--//常识性
--$foo --在整个场景中查找名为foo的对象,如果有多个同名对象,将只会返回找到的第一个对象
--$/foo --将仅查找名为foo的顶级对象
--$/foo/foo1 --将仅查找foo子级下名为foo1的对象
/*--//在foo下创建一个box
in $foo
(
box()
)
*/
--select $foo* --//旋转所有以foo名称开头的物体
--DisableSceneRedraw() --禁用场景绘制
--EnableSceneRedraw() --启用场景绘制
/*--//撤销块内的操作可以被撤销
undo on
(
delete $box002
delete $foo1
)
max undo --对刚刚的操作进行撤销
clearUndoBuffer() --清理撤销后无法再撤销操作
*/
/*--//撤销块拥有标签 可以指定撤销哪一部分
undo "chexiao" on
(
delete $foo1
)
max undo "chexiao" --撤销名为“chexiao”的撤销块
*/
/*--//with的用法是默认进入某种状态,完成操作后回到操作之前状态
--//with后面常跟animate,undoredraw等操作
a=$foo1
with redraw off --//括号内的内容会在重绘关闭的时候操作,操作完后重绘重新打开
(
at time 0 a.length=100
at time 10 a.length=200
)
*/
/*--//可将多个上下文前缀放在一行里面使用
animate on, at time 0, with undo, in coordsys local
(
)
*/