Martin Matzeder

sanostol

About Me

EXPERTISE
Technical Director
INDUSTRY
Film/TV

Connect

LOCATION
Germany

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Apex Script:Component: How to use subnets Dec. 19, 2025, 6:37 a.m.

Thank You,
I was looking more for something like this

def test():
node = TransformObject(__name='node')

graph.addSubnet(test, "test")

It sometimes helps to create the nework You need in a apex graph.
Then plug it in the second input of a Apex Script node and in the decompile tab set it to second imput
Then hit Create Snippet

it will return Your graph as code. subnets and all for You to learn or build with
maybe it helps someone

Martin

Apex Script:Component: How to use subnets Dec. 18, 2025, 5:06 p.m.

Thank You for the detailed explanation.


I still wonder how to create nodes in a subnet. The example code creates nodes in a subnet.
def test(a: vector3, b: float) -> tuple(vector3, float):
a = a * b
b = b + 1.0
return a, b

my_subnet = graph.addSubnet(test, 'my_test')
Result in the subnet:



But how do I create a TransformObject for example or any apex node in a subnet?

Martin

Apex Script:Component: How to use subnets Dec. 18, 2025, 4:34 a.m.

Hello
I want to use Apex scriot for modifyin existing Apex graphs and also tied to use subnets to keep things tidy. With apex graph I get this results.



I end with this graph and subnet.



with a apex script like this:

I end up with this , obviously doing something wrong




So what I the correct way to use the addSubnet function. I do not want a graph input in the result, but I can not get addNode to work inside the subnet

thank You for Your time
Martin