Cモジュールで定義された型をサブクラス化して、いくつかの属性とメソッドを別名にしてスクリプトが異なるコンテキストで動作するようにします。 これを機能させるには、どうすれば私のクラスの辞書を手動で微調整する必要がありますか?私がDistanceToへの参照を辞書に追加しないと、私はPoint3d has no attribute named DistanceToになります。 class Point3
に定義されていない私は、元のコードが from PySide import QtCore
i = 0
def update();
global i
App.getDocument("Unnamed2").Pad001.Placement=App.Placement(App.Vector(0,127.5,0), App.Rotation(App.Vector(0,0