Search found 343 matches

by gah5118
Wed Mar 22, 2023 5:42 pm
Forum: Lua Scripting
Topic: connecting node to a nodegraph
Replies: 1
Views: 10881

Re: connecting node to a nodegraph

figured it out finally... my code is below. it's a mess and has a lot of my print test to understand how the commands were behaving. hoping it might help someone in the same situation.


function print_table(table, str)
--print a table plus an optional extra string
for i,n in pairs(table) do ...
by gah5118
Wed Mar 22, 2023 4:56 pm
Forum: Lua Scripting
Topic: connecting node to a nodegraph
Replies: 1
Views: 10881

connecting node to a nodegraph

I am trying to connect an alembic nodegraph inside an orbx nodegraph to a output geometry node

I have tried a few ways but am just beating my head against the wall at this point. the last method I was attempting was to have it create the output node in the selected graph, then clear the selection ...
by gah5118
Fri May 07, 2021 8:56 pm
Forum: Lua Scripting
Topic: creating and connecting to existing nodes
Replies: 4
Views: 7240

Re: creating and connecting to existing nodes

here's what i have so far. it's a mess, I know. i'm just digging across the forums and hacking together what i can find.

function print_table(table, str)
--print a table plus an optional extra string
for i,n in pairs(table) do
print(i,n)
end
print(str)
end

function rndPos()
return { math ...
by gah5118
Fri May 07, 2021 8:55 pm
Forum: Lua Scripting
Topic: creating and connecting to existing nodes
Replies: 4
Views: 7240

Re: creating and connecting to existing nodes

Now it's been a while, but you should be able to read the nodegraph for all of it's nodes. Then choose the one you want and connect it. The nodegraph is hierarchical so you will have to parse the tree to find the node you need. There are functions that allow you to search the tree for specific ...
by gah5118
Fri May 07, 2021 1:27 pm
Forum: Lua Scripting
Topic: creating and connecting to existing nodes
Replies: 4
Views: 7240

Re: creating and connecting to existing nodes

is it even possible to connect existing nodes together? Or, is it required that the nodes be created via Lua in order to do so?

if it is possible to connect nodes, and in this case, nodegraphs (the abc node) to nodes, how would one go about it?

thanks!
by gah5118
Thu May 06, 2021 3:02 pm
Forum: Lua Scripting
Topic: How to properly grab Node Graphs on Material Mappers
Replies: 3
Views: 5792

Re: How to properly grab Node Graphs on Material Mappers

Thanks much! This did the trick. I was able to grab the NT_OUT_MATERIAL nodes in each of the graphs using ConnectedNode like you suggested and was then able to grab the graphOwner of that that output node. From there I could grab all of the pins and inputs!

can you post your updated code? I think ...
by gah5118
Sat May 01, 2021 2:31 am
Forum: Lua Scripting
Topic: Lua auto nodes connection
Replies: 2
Views: 4951

Re: Lua auto nodes connection

this is nice!

I'm beating my head against the wall trying to figure out a few things and this has much of it. (new to lua and octane api)

one thing that isn't working is connecting a selected alembic node.. or rather nodegraph which is the error returned
string "V Connection.lua"]:17: bad ...
by gah5118
Thu Apr 29, 2021 5:30 pm
Forum: Lua Scripting
Topic: creating and connecting to existing nodes
Replies: 4
Views: 7240

creating and connecting to existing nodes

I have been trying to find an example for my situation but have had no luck so far.

what i am trying to create (with no lua experience):

in every scene is a geometry node inside a group (imported orbx) and a perspective camera. the names of these nodes never change (geometry.abc) (perspShape)

I ...
by gah5118
Thu Mar 25, 2021 3:53 pm
Forum: General Discussion
Topic: search naming
Replies: 0
Views: 632

search naming

when hitting space to search in stand alone. if you type "group" you are presented with two that both have the name group. Please update this so one says render group and the other says geometry group.


thanks!!
by gah5118
Wed Sep 16, 2020 9:11 pm
Forum: General Discussion
Topic: photoshop extension
Replies: 3
Views: 1523

Re: photoshop extension

Sorry for the late response; 2020 21.2.2

Go to advanced search