Modify panel freezing after reduceKeys

Modify panel freezing after reduceKeys

Anonymous
Not applicable
668 Views
7 Replies
Message 1 of 8

Modify panel freezing after reduceKeys

Anonymous
Not applicable
I fall in some odd situation here. Then I use rediceKeys() for the transform, my Modify panel completely freezing and it show nothing, like nothing selected. At least I identify that rediceKeys() cause this but why? Here what I'm doing. After baking animated object transforms to a dummy helper (variable "d"), I use this code:
reduceKeys d.transform.controller 0.1 3f (interval 55 85)

Code works and return OK. The scene file also not corrupted. But I have not any more access to the Modify panel. Reset Max dont helps. Only restarting works after that.

So pleace help me to understand that's wrong here and what I missed! Thanks!

0 Likes
669 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable
I came to the conclusion that it was a bug and I will write why, but first I'm not sure whether the topic is better to move or I open a new topic... Now I want someone who use 3ds Max 2009 (x32 or x64) to test a simple example below, to help me out to know is the problem is main or a real bug to report:

1. create a box
2. make same simple position animation
3. select the box
4. try to reduce keys by MaxScript:
reduceKeys $.pos.controller 0.5 1f

This must be works fine without above freezing bug.
I am 100% sure worked before for me and no understandable reason for not working now.

There is that I try:

1. I recently followed the tips "Fixing the scroll wheel in the modifier menu" and first I suspect this settings, so I reset them to default, but this not fix the bug.

2. Also recently I installed new hotfix: "Hotfix – Autodesk 3ds Max 2009 – 2009.08.18" and now I uninstall it (on both Max version x32 and x64), but the bug still continue.

3. I have just one tird party plugin, so I uninstall it too. This does not help.

4. In the moment I'm on old hotfix version (2008.06.10) and this does not help.

5. So the last suspects are the recently Macrosoft .NET autoupdates this week.

For now I see only a temporary solution and it's to restart Max after using reduceKeys(), but this is hardly the best solution. Ok, also I can do it by Track View (TV) IF TV return accurate result as MaxScript, but this does not happen now.

So thanks to everyone that can help me out about this problem!

0 Likes
Message 3 of 8

Anonymous
Not applicable
I just tried this out on max 2009 SP1 and yeah, this function is obviously bugged...

Here it makes the command panel disappear, then I have to uncheck/recheck it to have it back. As you say it 'kills' the modifier panel, but only if it was opened (the same goes for hierarchy and motion panel). If you were on one of the other three panels they're all fine when you open back the command panel...

So a solution would be to switch to create panel for example with

max create mode


Or even switch to expert mode with

actionMan.executeAction 0 "40264"  -- Views: Expert Mode Toggle


So that you don't have disappearing command panel problem.

Hope this helps !
0 Likes
Message 4 of 8

Anonymous
Not applicable
Thank you for your efforts and assistance!
You make a better diagnosis of the problem than I did, thanks!
However, I will report this bug.
0 Likes
Message 5 of 8

Anonymous
Not applicable
They are taking some time to fix this bug. It still exists in Max2011.
0 Likes
Message 6 of 8

Steve_Curley
Mentor
Mentor
Have you reported it?

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 7 of 8

Anonymous
Not applicable
I didn't report it, but it seems that someone already did. Anyway, I've found a workaround that seems to work like a charm:


currentStatus=getCommandPanelTaskMode() -- get the current panel
setCommandPanelTaskMode #create -- switch away from #modify, in case it was open
reducekeys newCamera.controller spn_reduce.value 1f -- your own reducekeys() here
setCommandPanelTaskMode currentStatus -- put the command panel the way it was before


If you're using a lot of reducekeys in your script, you could wrap it into a function, somewhat like this:

function fixedReduceKeys _controller _threshold _step =
(
try
(
Local currentStatus=getCommandPanelTaskMode()
setCommandPanelTaskMode #create
reducekeys _controller _threshold _step
setCommandPanelTaskMode currentStatus
true
)
catch
( false )
)

enjoy

ML
0 Likes
Message 8 of 8

Steve_Curley
Mentor
Mentor
The more people who report a problem, the more likely it is to be addressed.

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes