Hi,
I tried to recreate a simple magma with help from thinkboxsoftware.com/kraka-m … -maxscript and the connections are ok however I`m getting this error --> CURRENT Modifier: Magma internal error at line 182 of file “src\simple_compiler\base_compiler.cpp”(3 1)
I found out that its coming from the “InputValues” and when I switch them with “InputValue” from the menu it works, however I dont know what exactly is the problem within the code.
Code:
mody=MagmaModifier()
addModifier $ mody
magma=mody.magmaHolder
outputA=magma.createNode “Output”
magma.setNodeProperty outputA “channelName” “Color”
magma.setNodeProperty outputA “channelType” “float16[3]”
switchyA=magma.createNode “Switch”
magma.setNodeInput outputA 1 switchyA 1
input_true=magma.createNode “InputValue”
ctrl_true=Point3_XYZ(); ctrl_true.value = [1,1,1]
magma.setNodeProperty input_true “controller” ctrl_true
magma.setNodeInput switchyA 1 input_true 1
input_false=magma.createNode “InputValue”
ctrl_false=Point3_XYZ(); ctrl_false.value = [0,0,0]
magma.setNodeProperty input_false “controller” ctrl_false
magma.setNodeInput switchyA 2 input_false 2
in_volume=magma.createNode “InVolume”
magma.setNodeInput switchyA 3 in_volume 1
to_world=magma.createNode “ToWorld”
magma.setNodeInput in_volume 2 to_world 1
ic_position=magma.createNode “InputChannel”
magma.setNodeProperty ic_position “channelName” “Position”
magma.setNodeInput to_world 1 ic_position 1
input_geo=magma.createNode “InputGeometry”
magma.setNodeInput in_volume 1 input_geo 1