Node for Max: Getting Started

Поделиться
HTML-код
  • Опубликовано: 3 фев 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 !!!

  • @williamolsen20
    @williamolsen20 4 года назад

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

  • @SabinaCovarrubiasComposer
    @SabinaCovarrubiasComposer 5 лет назад +4

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

  • @oguzhantugral4185
    @oguzhantugral4185 8 месяцев назад +1

    Thank you. It is so helpful!

  • @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" ;)

  • @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)

  • @xamogxusx
    @xamogxusx 6 лет назад

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

  • @legros7
    @legros7 6 лет назад +1

    very great stuff! thank you Cassie.

  • @zeffii
    @zeffii 6 лет назад

    great to know this node exists! s00per handy :)

  • @romanoxman2770
    @romanoxman2770 4 года назад +1

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

  • @musicmovement
    @musicmovement 2 года назад

    thank you! this was great!

  • @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!

  • @Nimbin
    @Nimbin 5 лет назад

    thanks! wonderful

  • @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!

  • @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?

  • @Ronenlahat
    @Ronenlahat 3 года назад

    This is really cool

  • @animanoir
    @animanoir 3 года назад +1

    perfecto, grazie. de rien!

  • @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.

  • @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.

  • @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?

  • @DanSeipel
    @DanSeipel 4 года назад +1

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

  • @nickwalters5171
    @nickwalters5171 4 года назад

    gret tutorial, thanks

  • @rolandcahen7800
    @rolandcahen7800 5 лет назад

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

  • @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!

  • @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.

  • @zipnone1996
    @zipnone1996 6 лет назад

    neat!

  • @Beardwhip
    @Beardwhip 6 лет назад

    more more more!

  • @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

  • @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

  • @mattstockmal8167
    @mattstockmal8167 5 лет назад

    you are very cute.

  • @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