Hi folks,
I posted the first release on extensions.blender.org: An add-on that converts your node trees (Shader, Compositor, Geometry Nodes) into text. 100% reversible - the .blend file can be shared without the add-on.
geometry graph mini_moon(
radius: Float = 1.0 in 0.0..,
subdivisions: Int = 8 in 1..9,
largest: Float = 0.3 in 0.0..,
layers: Int = 5 in 1..8
) -> Geometry {
"A small moon: a sphere, craters of every size dug along its normals, grey dust"
sphere = IcoSphere(radius: radius, subdivisions: subdivisions).mesh
p = Position()
field = repeat(layers, height: 0.0, young: 0.0, size: largest) -> {
c = crater_layer(p: p, sites: crater_sites(sphere, size: size, seed: iteration))
return (height: height + c.height, young: max(young, c.young), size: size * 0.5)
}
return sphere
|> StoreNamedAttribute(name: "height", value: field.height)
|> StoreNamedAttribute(name: "young", value: field.young)
|> SetPosition(offset: Normal() * NamedAttribute(name: "height"))
|> SetShadeSmooth()
|> SetMaterial(material: Regolith)
}
submit : https://extensions.blender.org/approval-queue/base-node/
site : https://blender.basenode.ludopant.com/