Intro to Python - Houdini 18 - Writing parameter data to text files

Поделиться
HTML-код
  • Опубликовано: 7 ноя 2024

Комментарии • 20

  • @solidair1245
    @solidair1245 4 года назад +8

    size = parent.parmTuple('size').eval()
    This should return a vector 3.
    Great Python series! Would like to see some advanced tutorials on the subject. Even a paid series. Automation to Ue4 and Unity like your Race Track course. How to properly setup VSCode without the annoying linter problems with the hou module perhaps?

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

    I really enjoy your super easy-going vibe when you make a video.

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

    It's so cool, perfect timing with my need thanks

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

    Thanks for your videos , they are very useful!

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

    I want to watch all your houdini+python video, seems like this is not in that playlist, could you please put all the hou+py vidoes in that playlist kindly?

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

    Thank you for your tutorial video! This is exactly what I needed!

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

    Big fan of your work. Quick question how to access the attributes? I cannot seem to understand the SideFX documentation.

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

      In python we access the attrs through the geometry...so like this: geo.findAttribValue('attr name'). Theres a couple ways. I have a few videos I need to post this week on that very topic.

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

      @@IndiePixel3D You are the man!

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

    These tutorials have been immensely useful. I've seen you use both KWARGS and hou.pwd() as function args in HDA python modules - is there a difference?

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

      Kwargs, comes with a bunch of data about the HDA. If you go here: www.sidefx.com/docs/houdini/hom/locations.html then scroll down to "Parameter callback scripts " you'll see all the other data in the Kwargs dictionary. For instance you can get the parameter that called the function by using kwargs['parm']. Theres some other useful stuff in there as well. :-)

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

      @@IndiePixel3D Awesome thank you!

  • @AnsonSavage
    @AnsonSavage Год назад +1

    Is this a common way to make data persistent across Houdini sessions?

    • @IndiePixel3D
      @IndiePixel3D  Год назад +1

      I mostly write out to json these days if I need to save state or need to get data in and out from unreal or houdini....text files are just quick and dirty...json is more object oriented so makes it easier to find data in the json file. Every so often we will use csv files too.

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

    9:55 actually you can do it in one line
    sizex,sizey,sizez = map(lambda v: str(v.eval()), n.parmTuple("size"))

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

      That is pretty fancy fo sho!

    • @janmankopf6672
      @janmankopf6672 3 года назад +2

      if you don't need the values as string you can write
      sizex, sizey, sizez = parent.evalParmTuple("size")
      and if you need them as string this is cleaner than my previous example
      sizex, sizey, sizez = [str(v) for v in parent.evalParmTuple("size")]

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

    Hi, I ran into some problems when accessing string parameters.

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

    Unity car phy6 tutz??????

    • @IndiePixel3D
      @IndiePixel3D  4 года назад +4

      Yes, I know...hang in there...im getting there.