Це відео не доступне.
Перепрошуємо.

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

Поділитися
Вставка
  • Опубліковано 14 сер 2024
  • Continuing our Python in Houdini series, lets take a look at how to write out a text file that includes all the parameter data of our HDA. This is very useful if you need to save out preset data for your HDAs, or if you are building pipelines and need the parameter data in other places in your pipeline.
    Indie-Pixel Website: www.indie-pixel...
    Patreon: / indiepixel

КОМЕНТАРІ • 21

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

  • @liangtong7021
    @liangtong7021 5 місяців тому +1

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

  • @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 3 роки тому +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?

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

  • @IsaacOster
    @IsaacOster 3 роки тому +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  3 роки тому

      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 3 роки тому +1

      @@IndiePixel3D Awesome thank you!

  • @junzheshen3343
    @junzheshen3343 3 роки тому +1

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

    • @IndiePixel3D
      @IndiePixel3D  3 роки тому

      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 3 роки тому +1

      @@IndiePixel3D You are the man!

  • @junzheshen3343
    @junzheshen3343 3 роки тому

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

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

  • @ezioauditore5715
    @ezioauditore5715 4 роки тому +1

    Unity car phy6 tutz??????

    • @IndiePixel3D
      @IndiePixel3D  4 роки тому +4

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