Assume density of 1 not sticking.

I’m having trouble with particle loaders. I’ve been trying to use the “Assume density of 1” checkbox, but whenever I check this, and deselect and reselect a loader, it’s always unchecked.

Is this a bug or am I missing something?

I’m using krakatoa 1.1.2.32992 on max 2008 32 running on XP pro64

Cheers,

Cg.

Right. This is one of the moments where I simply have to quote the latest interview of Britney Spears… “What was I thinking?!”

The fix is simple.
*Go to your Krakatoa installation folder, locate the Scripts folder, open the file KrakatoaPRTLoader.ms.
*Find the ‘rollout renderingRollout “Rendering”’ definition.
*Locate the function “UpdateGUI”
*Remove the first line of the function so it looks like

fn UpdateGUI = ( chk_resetDensities.enabled = not copyDensitiesToMapChannel prg_renderLoadMode.color = case renderLoadMode of ( 1: red 2: green 3: blue default: black ) )

*Then locate the line "on chk_copyDensitiesToMapChannel changed state do " and change it so it looks like this:

on chk_copyDensitiesToMapChannel changed state do ( resetDensities = copyDensitiesToMapChannel UpdateGUI() )

*Save the MS file by pressing Ctrl+S.
*Deselect any objects and hit Ctrl+E to evaluate.

That should fix it.
Now if you check the “Copy…” option, both checkboxes will be checked and the second will be disabled. If you uncheck the “Copy…” option, both will be unchecked. But if you check only the “Assume Density of 1.0”, it should persist. The previous code updated the second checkbox on every UI refresh to match the “Copy…” state, so it was being turned off constantly.
Sorry about that and thanks for catching it!

Glad to help :slight_smile: I was in RnD stage when I posted and I have only just got back to it. It seems to work now. Thanks.

I am however a little concerned that you are watching Britney Spears interviews. :wink:

Cg.

Actually I did not. I caught a trailer to the interview, and that was the last thing they quoted, so it stuck in my head.
Another way to say “Man, am I stupid!”