MoI discussion forum
MoI discussion forum

Full Version: Scripts and AI intergration

From: AlexPolo
15 Mar   [#1]
Hi Michael,

What is the basic framework to get AI to write custom niche scripts in automating functions in MOI? I realize they are mostly Java Script what would be the prompt question to get AI to put together scripts based on the specific tasks that would be of little value to others in the MOI community.

Blender is moving really fast in the area with Ai automating tasks another contender is the GOOGLE AI STUDIO getting it to complete tasks or demonstrate a function.

Any thoughts welcome.
thanks
Alex.
From: Michael Gibson
15 Mar   [#2] In reply to [#1]
Hi Alex, I don't have any expertise in that area so I'm sorry I don't have any answer on that for you. It's not likely to be an area that I would be working on myself.

- Michael
From: Larry Fahnoe (FAHNOE)
15 Mar   [#3] In reply to [#1]
Hi Alex,

For what it's worth, some time back I was playing with ChatGPT and asking it to suggest javascript methods to simulate bending solids in MoI. I was initially intrigued to see that it seemed to know something about the MoI API, but as the conversation iterated, I quickly observed that while it had ideas about algorithms and syntax, it really didn't know much about scripting in MoI. The particularly irritating aspect was its confidence in its answers--it did not take long for me to get fed up with correcting it & get generally irritated with its "oh yes, that makes sense" sort of replies to my corrections. I'm not particularly enthusiastic about AI...mildly intrigued maybe, but...

--Larry
From: bemfarmer
19 Mar   [#4]
It seems like AI can "cobble together" lots of information, but without intelligence, only pseudo-intelligence. Maybe AI would do better with NodeEditor?

- Brian
From: AlexPolo
19 Mar   [#5]
In a recent production exercise I required a large set of values based on tooling positions and their desired output I manually worked out a set 5 scenarios I then asked deepseek to take those figures and interpolate them across a large range of scenarios and it completed the task really efficiently I did a random check across some of the figures and they came in with in range the prompt was a simple request and completed in seconds - this type of integration I think for calculation gear ratios and various mechanical scenarios has huge potential and already has traction in various other cad packages - interesting to see it progress at stage a fast pace.
From: Michael Gibson
19 Mar   [#6] In reply to [#5]
Hi Alex,

re:
> I did a random check across some of the figures and they came in with in range

I'm not sure that is enough to determine its correctness.

AI in engineering seems fraught with danger:
https://en.wikipedia.org/wiki/Hallucination_(artificial_intelligence)

- Michael
From: PaQ
21 Mar   [#7]
Language model are actually fascinating, having this next word prediction able to fool real conversation is crazy.
But in the other hand, that's all what it is, prediction, and guessing (hallucination). I wish sometimes I get a 'I don't know' reply instead of indeed having always something to say.

As for MoI usage, I guess your best bet is to give example code of "similar" script to help the model to write the syntax correctly during your request.
I manage to do a bit of openCL for Houdini with chatgpt that way. At some point I wasn't sure who was assisting who, but I usually have my stuff done. It's kinda helpful for "non coder" people to get a bit of work done and get more autonomy. That similar task would probably take my co worker 5min to solve tho.
From: Frenchy Pilou (PILOU)
21 Mar   [#8] In reply to [#7]
Does Ai can yet do that : give me in Language Vex ...anything you want ?
From: PaQ
24 Mar   [#9] In reply to [#8]
Not really ... for a particular language like houdini vex, you need to have a good knowledge about the existing functions yourself, because it will simply assume it's C and extrapolate.
It does explains what he's trying to do tho, so with a bit of patience you end up with something 'working'.
From: Frenchy Pilou (PILOU)
24 Mar   [#10]
So at the end you will have won some times or it's always a dream?