Until some version of Maya, a node has a new attribute, note. This feature uses well in sample scenes at Alias download corner. But it is used rarely, isn't it?
On the other hand, the one of the original languages of object-oriented programming languages, Smalltalk-80 uses much comments for describing class method, variable and uses as a place holder for demonstration code. Drag to select a line in the comment and open menu then choose 'execute it' command, that is frequently pattern for understanding what the code is. Very impressive.
At the present time, a part of this idea, namely comment is a property of object and is the first-class object, is used in some programming languages like Common Lisp, emacs-lisp, python. But the other part of the idea, using comment as a place holder for executable command seems not to spread. But I love it. Implementation would be easy. Get the body of comment, then parse or use regular expression to select a command form, then eval it.
So I like to implement this idea in Maya with node comment attribute. If you have a routine work sequence against a specific node, for example, making 10x10 instances from a surface frequently, or repeat: copy mirror -> merge to the original -> make it smooth until you decide to fix a surface shape, node comment is good place, while shelf is a place for MELs that are more standard, general commands.
The code is very simple as follows:
global proc
evalNote ()
{
string $tmp[] = `ls -sl`;
string $obj = $tmp[0];
string $note;
if (`attributeQuery -node $obj -exists "nts"` == false)
error("it has no note");
$note = `getAttr ($obj + ".nts")`;
eval($note);
}
Set the script to shelve. If you are annoyed by a routine work, select the
MEL sequence in script editor, then copy them into the note in the relevant
node. Once you want to do it, select the node, then click the icon in the shelf.
コメントを受けて間違いを修正しました。12/7 00:25
いつもと違う放送局で毎度思うことなんだけど、なんか違うスポーツみたい。解説も アナウンサーのレベルも違う。誰向けの放送なんだろう? やっぱり一般人向けの啓 蒙放送なんだろうか。レースの流れが分かるような組み立てじゃないのが不満。代り に、田舎のイベントを地方の放送局が中継しているような雰囲気が抜けない。しかし これはトヨタの冠大会なんだそうだ。だったらホンダに負けず、トヨタも自転車作れ ばいいのに。
韓国より中国に強くなってもらった方がアジアのためにいいような…(いろいろとア レな話)。天安門広場をケイデンス120でみんな走ったりしてたら一度見に行きたいw。
あ、ノデチンだ! やっぱり顔の引き締まり方が 講師の時と違う ね。とは言っても長くてもレースから離れてまだ一ヶ月経ってないくらいじゃないか。
2日目は山岳コース。いきなり中国の水墨画の世界みたいだ。そんなに速いようには 見えないゾ。でも速い、んだろうな…。空のボトルを監督車に戻していたw。 ゴールスプリントはベルギーチーム2人対 shimanoの安部良之。うーん、ベ ルギーチームはチームプレイしないのか!
3日目。なんだクリテリウム中心か。半分は山岳にしてくれー、(事情により頂上ゴー ルは困難という)ツール・ド・北海道みたいなのはやめてー。 ステージ優勝は真鍋和幸(ええとどこだっけ?→ミヤタスバル)。
最終日。なぜこんなところで福島こけるんだ!? 巻き込まれそうで怖い。 結果、阿部が守って個人総合優勝。チームはshimano、日本選抜で1位、2位。 お疲れ様。

