0

処理中の PApplet を Max から初期化しようとしています。アプレットを作成できますが、実行できません。私はJavaフレームを作成できるので、PAppletが可能になるはずだと思います。

これが私が知っていることです:

public class PAppletInMax extends MaxObject {

    public static class Test {

        Test() {
            // this is to have a message in Max console
            post("construct Test");

            // create the Processing sketch
            MaxTest_01 mt_01 = new MaxTest_01();
            // call main
            // here is where it goes wrong
            //mt_01.main(new String[]{});

            // this crashes max
            //mt_01.runSketch(new String[]{}, mt_01);
            //PApplet.runSketch(new String[]{}, mt_01);
        }


    }


    public PAppletInMax() {

        /*
        // this works
        JFrame frame = new JFrame("FrameDemo");
        frame.pack();
        frame.setVisible(true);
         */
        Test t = new Test();

    }


}

誰かが助けてくれたら本当にうれしいです。一度機能すると、通信にOSCが不要になるため、はるかに簡単になります。

4

0 に答える 0