Directories

5 votes
Version: 
1.2
Date Updated: 
05/21/2015
Author Name: 
Nikolay Litvinov


v.1.23 All vesies of Max
Handy script for open folders 3dsMax.
Rather, the idea is important.
The path and name of the buttons can be changed to other
Удобный скрипт для быстрого открытия папок 3dsMax.
Здесь скорее важна идея.
Пути и названия кнопок можно поменять на другие

AttachmentSize
directories2012_v1.2.ms2.04 KB
directories2016_v1.21.ms1.93 KB
directories_v1.23.ms2.42 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
asymptote's picture

Great Script but...

..needs an easier way of setting directories within max imho, eg: right click on button "set directory" "rename" etc.

Nik's picture

ok

.

Nik's picture

Hello

Hello Why run the scripts themselves through such a dialogue? Usually this kind of scripts: http://www.bolshoyvopros.ru/questions/1315743-kak-prisvoit-skript-k-knopke-3dsmax.html#answer3809469 fill up in tullbar through (Customize-> Customize User Interface ...). And this dialogue is commonly used for the organization itself of any of the script, the script anchoring the buttons function. But if you really really need to, and you can attach scripts. For this script, which will be assigned to the button must be makroskriptom, it is done as follows:http://www.bolshoyvopros.ru/questions/588142-kak-sozdat-skript-maxscript.html#answer1720938 And then the script of this type throws in the Max viewport to install. Then you need to get the line as a registered teams this script by pressing F11 and enable Macro Recorder -> Enable to run the script through a hotkey or button tullbare and pink top field listnera expression will return to run this script. Tk here is an expression and you can shove in the dialog that the script of a button. for example on btn1 pressed do macros.run "Custom Scripts" "unBevel" bracketed macros.run "Custom Scripts" "unBevel" can be omitted if it is the only team. And in order to arrange the keys in multiple columns, you must change the position pos buttons: [x, y] Well, of course, expand the dimensions (width and height (width: 100 height: 238)) of the dialogue rollout directories "Directories" width: 100 height: 238 I advise here posmotretbazovye knowledge maxscript http://vk.com/max_script I hope all lucidly explained. If you have questions - write.

fajar's picture

Hey man please english

Hey man please english ....this is not official russian forum ...
also nik, you should read maxscript help about getdir()....

Nik's picture

.

http://vk.com/id_niklit

Patriot_LAOsa's picture

Да!

Где с Вами можно еще списаться? Что не пишу блокируется?

[email protected]

Patriot_LAOsa's picture

А

Николай спасибо за ответ. Буду разбираться и пробывать.
Написал Вам письмо с сылкой на изображения "зачем мне это надо", но сайт почему блокирует и не пропускает?

Кстати, я пользуюсь скриптом Александра Савченко - Open Folder v.3.1
Он идеально подходит для моих нужд, открывает и запускает все что угодно и даже "инородные" программы из среды 3ds max. Но у него проблема - он не модернизируется внешне, и кол-во кнопок и их положение ограниченно.

Еще раз спасибо! Будем учиться.

Nik's picture

Здравствуйте

А зачем запускать сами скрипты через такой диалог? Обычно скрипты такого вида: http://www.bolshoyvopros.ru/questions/1315743-kak-prisvoit-skript-k-knopke-3dsmax.html#answer3809469 закидывают в туллбар через (Customize->Customize User Interface...).

А такой диалог обычно используется для организации непосредственно какого либо самого скрипта, привязывая к кнопкам функции скрипта. Но если уж очень надо, можно и скрипты приделать.
Для этого скрипт, который будет присвоен кнопке должен быть макроскриптом, это делается так: 

http://www.bolshoyvopros.ru/questions/588142-kak-sozdat-skript-maxscript.html#answer1720938 

А потом скрипт такого вида закидывается во вьюпорт макса для установки. Затем нужно получить строку как зарегистрированную команду этого скрипта, нажав F11 и включить Macro Recorder -> Enable запустить скрипт через хоткей или кнопку в туллбаре, и в розовом верхнем поле листнера появится возвращаемое выражение запуска этого скрипта.
Тк вот это выражение и можно подсунуть уже в том диалоговом скрипте на кнопку. Например

on btn1 pressed do macros.run "Custom Scripts" "unBevel"

в скобки macros.run "Custom Scripts" "unBevel" можно не включать если это единственная команда.

А чтобы расположить кнопки в несколько столбцов, нужно изменить координаты кнопок pos:[x,y] 
Ну и расширить конечно же размеры (ширину и высоту ( width:100 height:238)) самого диалога rollout directories "Directories" width:100 height:238 

Советую здесь посмотретьбазовые знания по maxscript http://vk.com/max_script

Надеюсь доходчиво всё объяснил. Если будут вопросы - пиши.

Patriot_LAOsa's picture

Здравствуйте Николай! А как

Здравствуйте Николай! А как сделать так что бы с этих кнопок запускались сами скрипты, а не папки... и как сделать кнопки по горизонтали в два ряда...

Подскажите пожалуйста если нетрудно! Очень надо!!!

mail: [email protected]

Nik's picture

Hi

in path use duble slash "\\"
example:
on btn_3dmax pressed do shellLaunch "explorer.exe" "c:\\Program Files\\Autodesk\\3ds Max 2016"

except if use DOSCommand, there is "\"
example:
on btn_um pressed do DOSCommand "explorer.exe c:\Users\%username%\AppData\Local\Autodesk\3dsMax\2016 - 64bit\ENU"

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.