Bobo
@bobo
New Member
Joined: Feb 14, 2024
Topics: 1 / Replies: 2249
Reply
RE: why 2011 scripts not running in 2012?

Yes, it was fixed internally, but did not make it into the latest HF/SP for some reason.Hopefully in an upcoming HF. I made sure the developers are aw…

14 years ago
Forum
Reply
RE: why 2011 scripts not running in 2012?

floatingworld: Thanks Bobo – very useful. I will report to autodesk. Isn’t my code saying print :‘Morph not found’ , if the channel isnt there? Anyw…

14 years ago
Forum
Reply
RE: why 2011 scripts not running in 2012?

Looks like return() is kind of broken in 2012, as far as I can tell. It is normally implemented via an exception internally, and it looks like it is n…

14 years ago
Forum
Reply
RE: problem with "if" and "else"

This is because both conditions are always executed, and the LAST one to be executed prevails. So if your camera is Camera04, it will set the property…

14 years ago
Forum
Reply
RE: "file, new" without prompt

Panayot: from the macro recorder: actionMan.executeAction 0 “16” Nice one! It is still asking about saving the scene, but I guess clearing the…

14 years ago
Forum
Reply
RE: "file, new" without prompt

I don’t think there is a nice way to suppress that message (although it might be possible to handle it using the DialogMonitorOps and UIAccessor funct…

14 years ago
Forum
Reply
RE: What is the use of 'flag'??

Did you read the explanation on the same page the methods were listed? Granted, the description of what mask does is a bit convoluted (it was taken di…

14 years ago
Forum
Reply
RE: maxscript syntax comparison

TheGrak: Would everyone agree on the comparisons below? Here’s the first one done, correct me if you see any errors – I’m new at this: …

15 years ago
Forum
Reply
RE: Unable to close filestream with 3dsMax 2012

Yeah, a nasty bug on the shipping Max 2012 version caused a file to be opened twice internally, but to be closed just once, resulting in file locking….

15 years ago
Forum
Reply
RE: Is there a better way to do this?

Glad you found your answer! And you can call execute() when reading that string back to turn it into an array again.

15 years ago
Forum
Reply
RE: Is there a better way to do this?

Then your code is pretty much what you need. A bunch of observations: *You don’t need to do seek() to 0 because when you open the file, it is at 0 alr…

15 years ago
Forum
Reply
RE: Is there a better way to do this?

If the INI file has correct [Categories], then you can use getIniSetting(). Otherwise, there are several ways to do what you did, and none is necessar…

15 years ago
Forum
Reply
RE: how to remove empty entries of an array ?

Thanks to the beauty of MAXScript, my first example can be shortened to yourArray = #(#(), #(1,2,3), #(“a”,”b”,”c”)) yourArray = for i in yourArray …

15 years ago
Forum
Reply
RE: how to remove empty entries of an array ?

A sub-array in an array is exactly like any other item. You can call deleteItem on it, or just collect the valid ones to remove the ones that you don’…

15 years ago
Forum
Reply
RE: Script kills MacroRecorder somehow, why?

We have the same issue with Krakatoa (which contains a lot of scripted code) killing the MacroRecorder, and I have been unable to pinpoint the real pr…

15 years ago
Forum
Page 10 / 150