Node for Max: Getting Started

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.พ. 2025

ความคิดเห็น • 63

  • @FelixCarcone
    @FelixCarcone 5 ปีที่แล้ว +1

    Thank you, I used this video as ref a lot. Max 8 is killer, n4m is a beast. Keep up !!!

  • @SabinaCovarrubiasComposer
    @SabinaCovarrubiasComposer 5 ปีที่แล้ว +4

    Thanks, I'd like more tutorials about grabbing and visualizing data from social media. Thanks :)

  • @williamolsen20
    @williamolsen20 4 ปีที่แล้ว

    I am just learning JS, and this was very educational. Thanks! Good Job!

  • @oguzhantugral4185
    @oguzhantugral4185 8 หลายเดือนก่อน +1

    Thank you. It is so helpful!

  • @jsonslim
    @jsonslim 3 ปีที่แล้ว

    3:25 and how do I get this node? (press m or click button in front of max window near the scale)

  • @romanoxman2770
    @romanoxman2770 4 ปีที่แล้ว +1

    How can we do in order to use something like environment variables in Node for Max?

  • @legros7
    @legros7 6 ปีที่แล้ว +1

    very great stuff! thank you Cassie.

  • @ygreq
    @ygreq 6 ปีที่แล้ว +2

    Thank you for this tutorial. Anything related to n4m is really appreciated. The only reason for me to upgrade is n4m btw. Maybe next time you do a tutorial that truely uses the power of node.js.

    • @dAtramt
      @dAtramt 6 ปีที่แล้ว +1

      they're just "Getting Started" ;)

  • @zeffii
    @zeffii 6 ปีที่แล้ว

    great to know this node exists! s00per handy :)

  • @danielbrowne3973
    @danielbrowne3973 3 ปีที่แล้ว +1

    I was following the tutorial and after connecting up/down/left/right to prepend input, The max console is returning Received from Max ${dir} instead of Received from Max Up etc. It appears that my code is identical to yours. what am I missing? I am using this tutorial to try and wrap my head around n4m and I don't want to move forward until i can replicate your tutorial.

    • @rogerknight9723
      @rogerknight9723 3 ปีที่แล้ว +1

      same

    • @rogerknight9723
      @rogerknight9723 3 ปีที่แล้ว +2

      just figured it out. you must not use the typical apostrophe ' you have to use the apostrophe in the top left of your keyboard on the same key as the tilde ` they are different. ' `

    • @iffyswitch
      @iffyswitch 2 ปีที่แล้ว +1

      @@rogerknight9723 i was having the same problem, thanks for this solution! i only know a little C-Arduino so i have never used the ` before

    • @nightshining5662
      @nightshining5662 ปีที่แล้ว

      @@rogerknight9723 That was really unclear in this video, thanks for clarifying!

  • @vinchelo
    @vinchelo 5 ปีที่แล้ว

    Hello, I have a project that includes n4m, it works perfect on windows but when trying to compile standalone it no longer reads the node folders, is there any procedure to perform ????. Please help!

  • @xamogxusx
    @xamogxusx 6 ปีที่แล้ว

    cool tutorial! looking forward to an mc tutorial series :) thank you max team for makin this software

  • @henriquematias1986
    @henriquematias1986 4 ปีที่แล้ว +1

    Would be great to see the same tutorial but only using node.js, for instance creating the objects and drawing the pixel all from node.js + map-api?

  • @musicmovement
    @musicmovement 2 ปีที่แล้ว

    thank you! this was great!

  • @Nimbin
    @Nimbin 5 ปีที่แล้ว

    thanks! wonderful

  • @atticuspomerantz65
    @atticuspomerantz65 6 ปีที่แล้ว

    Just curiously - why don't we have to use NPM or Yarn to bring in the max-api? Does it already exist because it's living in the same directory as the max patch?
    Thanks so much for making this video! I would love to see more.

    • @dude837
      @dude837 6 ปีที่แล้ว

      Great question, that's actually something we're able to do with scripts running from Max, because of the special way we run them. So you don't need npm or yarn, because Max adds that module.

    • @subobjectclassifier7170
      @subobjectclassifier7170 6 ปีที่แล้ว +1

      @@dude837 Is there a way to import a third-party npm package and use it within a script referenced by the node.script object?

  • @iham1313
    @iham1313 6 ปีที่แล้ว +3

    why not use switch/case instead of if/else if?

    • @dAtramt
      @dAtramt 6 ปีที่แล้ว

      it's true this is a good situation to opt for switch/case. I think the main point of this tutorial is to demonstrate communicating between node and max, and since if/else is probably pretty familiar syntax to most max people, i guess i'd ask... why not if/else?

    • @linkcell
      @linkcell 6 ปีที่แล้ว

      Can you write it here please?

    • @dAtramt
      @dAtramt 6 ปีที่แล้ว

      switch(dir)
      {
      case ‘UP’:
      y -= 1;
      break;
      case ‘DOWN’:
      y += 1;
      break;
      case ‘LEFT’:
      x -= 1;
      break;
      case ‘RIGHT’:
      x += 1;
      break;
      }

    • @linkcell
      @linkcell 6 ปีที่แล้ว

      @@dAtramt thx

    • @iham1313
      @iham1313 6 ปีที่แล้ว

      @@dAtramt that question is like a while vs for loop.
      of course you can do what makes the code work.
      therefore if statements alone would do the trick as well.
      if (key == 'UP') // no need to compare type and value (===); value is enough (==)
      y -= 1; // or y-- or --y
      if (key == 'DOWN')
      y += 1; // or y++ or --y
      ... and so on. (no curly brackets needed for single lines btw, but thats a really minor thing)
      a switch case is still more readable and it is designed for exactly that purpose: switching between multiple possible values/states/situations.
      a sw-dev (ever seen java/javascript/php/c++ and others - sadly not python) knows a switch case, and if one is not familiar with it, he/she might have seen it for the first time and got a hint besides the n4m related topic. as it is a no brainer, it doesn't hurt much, to show it.

  • @Ronenlahat
    @Ronenlahat 3 ปีที่แล้ว

    This is really cool

  • @tothesun
    @tothesun 6 ปีที่แล้ว

    Can the js code quickly refer to values in a buffer~ out in Max?

    • @dude837
      @dude837 6 ปีที่แล้ว

      No, it's not possible right now. However, working in concert with a [js] object, you could probably make something to fulfill your needs.

  • @rolandcahen7800
    @rolandcahen7800 5 ปีที่แล้ว

    unfortunately, two many errors, cannot read the hole screen to check. could not make it very frustrating

  • @animanoir
    @animanoir 3 ปีที่แล้ว +1

    perfecto, grazie. de rien!

  • @DanSeipel
    @DanSeipel 4 ปีที่แล้ว +1

    I keep getting "node script not running" this is maddening

  • @dariocasillo8455
    @dariocasillo8455 5 ปีที่แล้ว

    what is the symbol before the Received on line 4?

    • @emoruggles
      @emoruggles 5 ปีที่แล้ว +1

      It's a backtick ("`"). On Mac and Windows QUERTY and QUERTZ you can make one by hitting the key to the left of the "1" key.

    • @calciumvaughan3519
      @calciumvaughan3519 4 ปีที่แล้ว

      @@emoruggles Thank you!! I was so confused as i was using a regular apostrophe and it wasn't working... always wondered what that key was for ;P

  • @DiogoCocharro
    @DiogoCocharro 5 ปีที่แล้ว

    Can anyone out there try this example code from the documentation?
    I keep getting errors, node.script wont start.
    docs.cycling74.com/nodeformax/api/module-max-api.html#.addHandlers
    Thanks!

  • @nickwalters5171
    @nickwalters5171 4 ปีที่แล้ว

    gret tutorial, thanks

  • @joshspoon
    @joshspoon 5 ปีที่แล้ว

    could only get output to put out values if I did maxApi.post('x: ' + x, 'y: ' + y);. Why doesn't the way in the video work for me?

    • @joshspoon
      @joshspoon 5 ปีที่แล้ว +1

      figured it out specifically need `` not ' ' or " ", for anyone else who has this issue

    • @dirkhandreke480
      @dirkhandreke480 5 ปีที่แล้ว +1

      @@joshspoon why is that ? very happy to come across your post!

    • @emoruggles
      @emoruggles 5 ปีที่แล้ว

      @@dirkhandreke480 it's a newer feature of JavaScript called template literals, which function mostly the same as strings that use single or double quotes, except you can also embed expressions using the "${}" syntax. for more info: developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals

  • @vinchelo
    @vinchelo 6 ปีที่แล้ว

    Hello, this is possible in max 7????

    • @ygreq
      @ygreq 6 ปีที่แล้ว

      Nope as this used Node for Max which is only available in Max 8. you can do something similar with what you have in Max 7. Easily.

    • @adamshield5029
      @adamshield5029 6 ปีที่แล้ว

      In this specific example, you could do all of this in the regular js object in Max 7; however, Node opens up infinite possibilities once you start importing npm libraries.

  • @jsonslim
    @jsonslim 2 ปีที่แล้ว

    Why am i receiving this? "node.script: Node script not ready can't handle message greeting"

    • @jsonslim
      @jsonslim 2 ปีที่แล้ว

      Sorry, it was my mistake, I was editing different .js file and thinking that it's the actual node.script file

  • @zipnone1996
    @zipnone1996 6 ปีที่แล้ว

    neat!

  • @Beardwhip
    @Beardwhip 6 ปีที่แล้ว

    more more more!

  • @OmarDelReal45
    @OmarDelReal45 6 ปีที่แล้ว

    I feel Sam is i the background making noises to distract her.

    • @dude837
      @dude837 6 ปีที่แล้ว +3

      It wouldn't have any effect. Cassie is completely unflappable.

  • @giammona94
    @giammona94 4 ปีที่แล้ว

    Please say every code that you are coding lmao. @12:00. You stated “type dur” but honey. There’s a symbol before dur that I can’t really figure out lol is it ‘$’ is it a ‘s’ god knows lol

    • @giammona94
      @giammona94 4 ปีที่แล้ว

      So fucking frustrating

  • @linkcell
    @linkcell 6 ปีที่แล้ว +1

    Lol wut, this was actually pretty bad. Too long and too little node. Why not even code all messages inside node instead of relying on trigger object?...

    • @dude837
      @dude837 6 ปีที่แล้ว +2

      Appreciate the honest feedback. Keep in mind we're trying to keep things very simple for this early video. That last point about writing separate clear-update-blit messages in Node is an interesting one though, I could see how that could be much clearer.

    • @linkcell
      @linkcell 6 ปีที่แล้ว +3

      @@dude837 looking forward to more 'delicious' subsequent n4m tutorials

    • @Beardwhip
      @Beardwhip 6 ปีที่แล้ว

      as a max user that knows little about java (but has interest in node), i appreciated these tutorials. they were a great intro

  • @mattstockmal8167
    @mattstockmal8167 5 ปีที่แล้ว

    you are very cute.