AWS Thinkbox Discussion Forums

Reqest Krakatoa Delete

For an addition to the Krakatoa Delete Modifier - a radial button for Selection == to 1

Thanks for the idea!
In the mean time, you can insert a Magma modifier and set it to
->Selection -->LessThan 1.0 --> Switch (0.0,1.0) -->Selection
or alternatively
->Selection -->GraterOrEqual 1.0 --> ToFloat --> Selection

So if the selection value is less than 1, it will be set to 0, otherwise it will be set to 1.
This should reset all particles’ soft selection values and only particles with 1 and higher will be deleted.

Here is the MagmaFlow:

[code](–MAGMAFLOW2–
global MagmaFlowEditor_EditBLOPHistory = #()
magmaNode.note=""
node0 = magmaNode.createNode “InputChannel”
magmaNode.setNumNodeInputs node0 0
magmaNode.setNumNodeOutputs node0 1
magmaNode.setNodeProperty node0 “channelName” “Selection”
magmaNode.setNodeProperty node0 “channelType” “”
magmaNode.DeclareExtensionProperty node0 “Position”
magmaNode.SetNodeProperty node0 “Position” [589,30]

node1 = magmaNode.createNode “GreaterOrEqual”
magmaNode.setNumNodeInputs node1 2
magmaNode.setNumNodeOutputs node1 1
magmaNode.setNodeInputDefaultValue node1 2 1.0
magmaNode.DeclareExtensionProperty node1 “Position”
magmaNode.SetNodeProperty node1 “Position” [729,15]

node2 = magmaNode.createNode “ToFloat”
magmaNode.setNumNodeInputs node2 1
magmaNode.setNumNodeOutputs node2 1
magmaNode.DeclareExtensionProperty node2 “Position”
magmaNode.SetNodeProperty node2 “Position” [869,0]

node3 = magmaNode.createNode “Output”
magmaNode.setNumNodeInputs node3 1
magmaNode.setNumNodeOutputs node3 0
magmaNode.setNodeProperty node3 “channelName” “Selection”
magmaNode.setNodeProperty node3 “channelType” “float32”
magmaNode.DeclareExtensionProperty node3 “Position”
magmaNode.SetNodeProperty node3 “Position” [100,100]

try(magmaNode.setNodeInput node1 1 node0 1)catch()
magmaNode.setNodeInput node1 2 -1 1
try(magmaNode.setNodeInput node2 1 node1 1)catch()
try(magmaNode.setNodeInput node3 1 node2 1)catch()

)
[/code]

Can’t i just use a selection->Floor->Selection?

You can, if you know for a fact that all the values are in the [0,1] range.

Bumping this request from last year.

You sure you don’t want it >= 1?

Privacy | Site terms | Cookie preferences