Notifications
Clear all

[Closed] 3 dotnet classes

Oh cool, I’ll give that a try!

Hi Artur,

I see that dnFolders will exclude or exclude a “Thumbs” folder. Is there a way to specify a folder to exclude? I would like to exclude some folders from the tree. I suppose I need to learn to write my own TreeView at some point so I can filter and populate it myself… But using yours is so easy!

Thanks,

Jonah

Hi Jonah and thanks! I guess it’s doable but right now I’m on vacations and I dont know if I have the latest version of the KClasses here (I’m always lost between versions… never got to grip that out) but I’ll take a look as soon as I can.

Cheers,
Artur

Ha! thanks for replying while on vacation! I appreciate you taking some time to look at it.

I now have a Star Wars imperial theme midi Easter egg in my asset browser at work!

Hey!
Sorry for taking so long, I’m back in business and I’ve updated the DLL with your request.
By default, it excludes the “thumbs” dir as before, but if you change the .ExcludedDirs property you have a go with custom directory exclusion.

Keep your code exactly the same, just add this BEFORE the ProcessTree method call.

EDirs = dotnet.valuetodotnetobject #("FLAGS","WORLD") (dotnetClass "System.String[]")
tvFolders.ExcludedDirs = Edirs

I hope this helps! Keep them coming!

Cheers,
Artur Leão

Ha! Your “late” response is welcome none the less. Obviously, I’ve been busy as well. I need to set up the alerts for my subscribed threads…

Anyway, THANK YOU! I look forward to implementing this.

Hehe, sorry for taking so long, anyway, keep the ideas coming! Cheers and good work there.

Hi
I have a question after seeing that you’ve added to the assembly midi playback

Would it be hard to add midi input as well? It would be nice to use that to link parameters in max to knobs and sliders from a midi controller. It doesn’t have to enumerate devices or other generic stuff, just let the user set the device id (0, 1, 2…) and then start listening to messages. The maxscript part would interpret those strings.

I have done this in Processing (java) and the code was short but I don’t know how to call a .NET Midi I/O assembly or “winmm.dll” from maxscript. In Processing i was using a midi event controllerChange(int channel, int number, int value) and those 3 numbers were all that was required to get the device slider/knob number and its value (0-127) then link that to the UI software value.

Sure, the comm could be bidirectional because some midi controllers have motorized sliders or value indicators (led bar graphs) and you could send the current value to the device to have it displayed there but that’s more difficult and not really needed from the start.

Thanks anyway for the dll.

Hi, could you show me the links to some documentation so I would know where to start? Also, if you have some code and don’t mind sharing it, I would like to see it, it would help.

Anyway, I’m kind of busy (as usual) so I dunno when I can take a look at this, but I’ll try to see what I can do. One other problem is that I don’t have any Midi devices to test the code afterwards.

Thanks and cheers!

Page 4 / 5