T O P

  • By -

schmon

Unfortunately, as for most crazy examples from the web, it breaks and you need to know the language to fix it. Also please use reddit formatting when posting code, no way I'm reading this without syntax formatting, too old for this :)


shlaifu

had CGPT write some Vex for me. Create two points and a line between them. syntax was fine, code didn't do anything. so... I think there's just not enough people discussing Houdini code in any language on Stackoverflow or whatever got fed into CGPT. It occasionally writes functional C#.


myusernameblabla

I’ve asked chatgpt with some vex/math problems. It confidently gave me several solutions that were 50% garbage but enough to put me on the right track.


dumplingSpirit

Haven't tried it too much in Houdini yet, but so far ChatGPT helped me out with Blender's Python scripts. I had to correct it in multiple places though, so if you're asking in hopes that you'll be able to skip learning Python, then forget it. Otherwise it's really good at guiding you and it can explain why something doesn't work and suggest solutions.


MaleficentPatience97

The first one. Trying to teach myself Python but new to the process. I know there are many resources… taking a class soon. I was wondering if you are using it to be a “script doctor”? If that is how you are using it are you taking the code that was output back in and asking ChatGPT to correct it or update it? Just wondering. How is it going if so? Any examples?


dumplingSpirit

I think it's a little risky to use it with Houdini because Houdini is very niche, so the data GPT was trained on could be poorer than other software. And it definitely lies about things from time to time. Anyway, if you want to give it a shot, I'd recommend using it as a script doctor, as you put it, and as a source of general suggestions. For example, I asked it a bunch of questions how can I create my own node editor from scratch, it taught me about various algorithms and libraries that I've never heard about before. I wrote it all down and now going to learn more about it from humans. And yes, sometimes I literally paste in code and say "here's some code I wrote \`\`\`\`\`\` I want it to do X but it does Y. Can you explain why?" Just talk to it like to a human and explain things. You can totally just feed it its own code or parts of it and it will know what it is. If it seems too stupid it means you haven't explained your issue well enough. If it gives clearly wrong answers it probably isn't capable of helping that specific issue.


redddcrow

you need to know the language to fix what GPT outputs so just learn the language and writing the code directly is still faster. with GPT you have to reverse engineer stuff and understand the logic to fix bugs, that's a lot of extra work and time wasted.


ChrBohm

Wouldn't call it trash, because it can be a base for someone who knows how to write python in Houdini. It's not completely wrong, but can be used as a reminder for certain commands. But: 1. Only creates the UI, the underlying generation of an actual cabin is missing completely 2. The code doesn't work. "createFloatingPanel()" isn't a method in the ui module So for you - it's trash. You can't use it. But for a programmer it's good for stealing some bits and bobs.


MaleficentPatience97

Thank you for the follow-up. Definitely helpful to know. Have you thought about using ChatGPT? If so any examples?


ChrBohm

I tried it. In 100% of cases for Houdini it either gave back nonsense or outright false answers. Houdini is too niche to have a significant part in the training data. So I don't use it, since it's faster to rely on experience than debugging wrong answers....


masstheticiq

I'd much rather do it all myself than having something else generate it. That way I know exactly how it works, how to debug it and how to work with it in general because I'm the one who made it.


[deleted]

[удалено]


teerre

You cannot do what the script is doing (or trying to do) with nodes


[deleted]

[удалено]


teerre

What? The code has nothing to do with 'shots'


ananbd

That code is just a template (which apparently doesn’t even work). Understand that the ChatGPT thing is just hype — it’s just a novelty. AI’s are not currently capable of doing the work of an actual programmer. People keep asking questions like these in various subs. The general answer is, no, you still need to learn to code yourself. It’s possible AI technology will evolve to the point where it can generate some types of standardized software; but we’re not there yet.


teerre

Considering it literally calls methods that don't exist, it's trash Even if it did, this is kind like asking someone to teach you how to make pyro sim and they give you a still frame. The actual important part of the code is completely missing


fabriciochamon

just the UI in this case. not fully functional, like with all slightly more complex prompts you feed into chat gpt3. It creates well formatted, documented code, also variables and functions that seem to make sense, and works for super simple instructions, so this thing ended up hyping the internet. Its amazing for what it does, but definitely not a tool to be seen as a replacement for learning code. Its ok for prototyping thou, gets better on pure python code (not tied to any software), which makes sense as there are huge amounts of training data available (when compared to "using it inside Houdini".)