Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Featured Threads
  inspiration alert!!!
(37 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies) Members Gallery
(516 replies)
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Remove all / multiple visibility tracks from a scene / selection.
show user profile  FX
Possible? wee oo non ?

I cocked up... and now am having to methodically select each object, open the dope sheet, and manually remove the visibility track, I have 167 of the little feckers :/

...anyway to do this in one fell swoop ?...doesn't seem to work with multiple selections.

I've tried the filter in track view but it doesn't seem to take.

read 683 times
8/18/2015 4:04:51 PM (last edit: 8/18/2015 4:09:18 PM)
show user profile  ccampbell


for i in objects do delVisTrack i

$Entrepreneur = if((Designer + Engineer)*Programmer){Problem Solver};

read 661 times
8/18/2015 9:35:15 PM (last edit: 8/18/2015 9:36:53 PM)
show user profile  Garp
Technically, add/remove visibility track doesn't add or remove the track. 'add' makes it visible and 'remove' deletes the keys (if I remember correctly) and hides it again. The track is always there, visible or not.
Make a box and type $[1] in the listener. It gives you the first subanim at the object level and it's always the visibility track. Except for saving one line of space in track view, there's no real interest in removing the track itself. Deleting the keys should do just fine.
for x in selection do try deleteKeys x[#visibility].keys catch()

read 647 times
8/18/2015 10:58:44 PM (last edit: 8/18/2015 11:01:28 PM)
show user profile  FX
@ Garp, yup that was the problem, I deleted all the keys but didn't notice half the meshes were invisible until I re-saved the file (no backup of course) :)
The only way to get them to show again (afaik) was to delete the visibility track.

@ccampbell : when I run... for i in objects do delVisTrack i ...I get.:

-- Error occurred in i loop
-- Frame:
-- delVisTrack: undefined
-- i: $Sphere001
-- Type error: Call needs function or class, got: undefined

It's all greek to me :)

read 632 times
8/19/2015 2:08:40 AM (last edit: 8/19/2015 2:08:40 AM)
show user profile  ccampbell
FX - did you Dl the c++ script to with my loop? The link I left had all the info in it. Garps def right here anyway though. No need to access the module through c++. You can even just clear Track bezierFloat() to get the same result.

Glad you got it working, sorry for the confusion.

$Entrepreneur = if((Designer + Engineer)*Programmer){Problem Solver};

read 626 times
8/19/2015 5:30:36 AM (last edit: 8/19/2015 5:30:36 AM)
show user profile  Garp
That plugin was from 2006. Chances are that it's not compatible anymore.

How about deleting all the keys and then setting one back, at frame 0 with 100% visibility?

read 625 times
8/19/2015 9:20:41 AM (last edit: 8/19/2015 9:20:41 AM)
show user profile  FX
Gahh, stop throwing code at me...I need buttons...BUTTONS!

Not sure if I could add a visibility track to 167 objects at maybe?

Anyway managed to do it manually but these snippets will no doubt be useful.

read 554 times
8/26/2015 12:06:21 PM (last edit: 8/26/2015 12:06:21 PM)
show user profile  Garp
You can always select the code and drag it to a toolbar. That'll make a button :)

read 550 times
8/26/2015 1:01:12 PM (last edit: 8/26/2015 1:01:12 PM)
show user profile  FX
I was referring to c++ :p

read 545 times
8/26/2015 4:06:23 PM (last edit: 8/26/2015 4:06:23 PM)
#Maxforums IRC
Open chat window