Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / Modify panel freezing after reduceKeys
  RSS 2.0 ATOM  

Modify panel freezing after reduceKeys
Rate this thread
 
34139
 
Permlink of this thread  
avatar
  • Anubis
  • Posted: 07 September 2009 11:10 AM
  • Location: Sofia
  • Total Posts: 433
  • Joined: 30 August 2009 01:50 PM

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!



Max 9 through 2009, XP-Pro x64 SP2
ASUS EAH3450 Series (Driver 8.470).
Core 2 Duo E8400 3GHz, 4Gb Ram, DX9.0c.

Attachment Attachment
Attachment Attachment
Replies: 0
avatar
  • Anubis
  • Posted: 07 September 2009 03:14 PM

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!



Max 9 through 2009, XP-Pro x64 SP2
ASUS EAH3450 Series (Driver 8.470).
Core 2 Duo E8400 3GHz, 4Gb Ram, DX9.0c.

Attachment Attachment
Replies: 0
avatar

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"  -- ViewsExpert Mode Toggle

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

Hope this helps !



Replies: 0
avatar
  • Anubis
  • Posted: 08 September 2009 03:46 AM

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.



Max 9 through 2009, XP-Pro x64 SP2
ASUS EAH3450 Series (Driver 8.470).
Core 2 Duo E8400 3GHz, 4Gb Ram, DX9.0c.

Replies: 0
avatar
  • ML2010
  • Posted: 28 May 2010 06:34 AM

They are taking some time to fix this bug. It still exists in Max2011.



3D Studio R1 (DOS) -> 3DS Max 2012
from Montreal, QC - home of 3ds max :)

Replies: 0
avatar
  • Location: West Midlands, England, UK
  • Total Posts: 14445
  • Joined: 06 August 2007 11:06 PM
  • Permlink of this post

Have you reported it?



Max 4.2 through 2013.
XP-64 (SP2)
NVidia 9800GTX-512 (Driver 266.58).
Core 2 Quad Q6600 2.4GHz, 8Gb Ram, DX9.0c.

Replies: 0
avatar
  • ML2010
  • Posted: 28 May 2010 07:57 AM

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



3D Studio R1 (DOS) -> 3DS Max 2012
from Montreal, QC - home of 3ds max :)

Replies: 1
/img/forum/dark/default_avatar.png

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

Author: Steve_Curley

Replied: 28 May 2010 08:00 AM