You are currently browsing the FAQ category.

Generate mapping coords by default and assign materials automatically

Is there a way in which the “Generate Mapping Coordinates” would be switch on automatically when you create objects, splines, modifications, Extrude, Sweep and etc.?

For example on VrayMtl:

global dmat
fn defaultmat=(
(
mybitmap=“Path to your bitmap file”
mytexmap=BitmapTexture filename:mybitmap filtering:1
dmat=VRayMtl Name:”White” Diffuse:(color 210 210 210) reflection_subdivs:16 reflection_fresnel:on texmap_bump:mytexmap effectsChannel:8
showTextureMap dmat mytexmap true
)
)
calbScr=”if objects.count!=0 then (newNode=objects[objects.count]\n”
calbScr+=”dmat=sceneMaterials[\"White\"]\n”
calbScr+=”if (newNode.material==undefined) do (\n”
calbScr+=”if dmat==undefined or (classof dmat != VRayMtl) do (defaultmat())\n”
calbScr+=”newNode.material=dmat\n))\n”

callbacks.addScript #filePostOpen “dmat=sceneMaterials[\"White\"];if dmat==undefined do defaultmat()” id:#VGCreate
callbacks.addScript #sceneNodeAdded calbScr id:#VGCreate

Place text in Notepad with extension “ms” and save to directory scripts\startup

Posted 5 months, 3 weeks ago.

Add a comment

Show .Net Property

Join the forum discussion on this post

Utility for Developer.

Main Features:

  • Loading the .Net Objects from .NET Framework Class Library.
  • Search for .Net Objects with the desired properties.
  • Load to the list of dependent .Net Objects.
  • Fiilter the list by name the .Net Object.
  • Convenient copying.
  • The built-in note-book.



v2.04
Adds support for 3ds Max 2008


v2.08
Adds Search TextBox
Fixes issues with garbage collection (only in max 2010)


v2.10
Replacing the Combobox to DataGridCombobox for solving issues with garbage collection (including 2008 and 2009 3dsMax)


v2.20
Fixes issues the”Combobox” with Garbage collector – now you can use one version in any 3ds Max Version
Adds the ability to show properties for global variables
(for example: you can make global variable MyListView in your script and check then properties in utility)
Adds the ability to dynamically search for text
Adds the ability to Execute selected text (You can found this in right-click menu)


Download

Also see “.Net Property Inspector” from Martin Dufour

Posted 7 months ago.

Add a comment

Tips & Tricks

Posted 9 months, 2 weeks ago.

Add a comment

Disable displacement in Vray Materials

Анатолий:
В общем идея скрипта заключается в том,
чтобы скрипт обрабатывал все материалы в сцене и
отключал на них displacement
и устанавливал указанную maxDepth и subdivs))
A:
То что выделено устанавливайте по вкусу.
————————————————————-
In general, the idea of the script to handle all materials in the scene and
disables to them displacement
and install the specified maxDepth and subdivs.
 
VrayMatArray = getclassInstances VrayMtl
for i in 1 to 24 where classof MeditMaterials[i] == VrayMtl and findItem VrayMatArray MeditMaterials[i] == 0 do append VrayMatArray MeditMaterials[i]
for m in VrayMatArray do
(

    m.texmap_displacement_on = off

    m.reflection_subdivs = 20
    m.refraction_subdivs = 20

    m.reflection_maxDepth = 10
    m.refraction_maxDepth = 10

    m.reflection_useInterpolation = off
    m.refraction_useInterpolation = off

)–end

Для того чтобы узнать все свойства материала Vray используйте команду
show (VrayMtl()) или getPropNames VrayMtl
—————————————————————————————————-
To learn all the material properties Vray use the command
show (VrayMtl ()) or getPropNames VrayMtl

Posted 11 months, 2 weeks ago.

Add a comment

Resolve rendering issues with FixUtilities script.

rus | eng

Quite often, my colleagues were have the problem of hang or crash when rendering from 3dsMax with Vray.
Almost always solve the problem is fairly simple.
First, if you work with 3d graphics, work on 64 bit system simply required.

Why?
Because, unlike 32-bit system, the 64 bit OS works with virtually unlimited memory.
(32-bit works with a maximum of 1.6 gigabytes of memory)
Using Vista is not recommended.
Use the WinXP 64 bit or Server 2003 64 bit.
With 64 bit OS use the 3ds Max 64 bit.




If the scene continues to crash then continue.

Usually the cause of crash is one (or then all) of the following errors:

    1. Objects without UVW-mapping .
    2. Objects without material.
    3. Objects with no Vray materials.
    4. Geometry without polygons.
    5. Objects with an incorrect geometry.
    6. Scene is to far away from origin.

By the way, most problems can see in the Vray log.



First step – merge your scene into a new file.
If necessary move all objects closer to the center of coordinates.

To ensure that select all objects, even if they are hidden, press F11
and in the window
Enter a string
select $ *
select the line and press SHIFT + ENTER.
All objects will be selected.
Move all objects closer to the center of coordinates.


Run script FixUtilities
Download

    1. Select the objects without UVW-mapping using the button “Missing UVW”
    Assign UVW-mapping modifier on them all.
    2. Select the objects without materials using the button “Missing Material”
    Assign Vray material on them all.
    3.Find in the list of materials not Vray materials and
    replace them with the Vray material.
    4. Select all Geometry without polygons with button “Select empty objects” and
    delete them.
    5. Close FixUtilities and render your the scene!

Posted 11 months, 2 weeks ago.

2 comments

Решение проблем при рендеринге с помощью скрипта FixUtilities.

rus | eng

Достаточно часто мои коллеги, работающие с Vray сталкиваются
с проблемой зависания или “вылета” из 3dsMax при рендеринге.
Практически всегда решить проблему оказывается достаточно просто.
Во первых, почему-то многие до сих пор боятся ставить 64х битную систему.
Ну уж будьте так добры, если вы работаете с графикой, а тем более 3d,
то работа в 64 битной системе просто обязательна.
Зачем?
Просто потому что в отличие от 32 битной системы, 64х битная
работает практически с неограниченным объемом памяти.
(32 бита работает максимум с 1,6 гигабайт памяти, больше – вылет!)
Вы поставили Vista 64 бит?
Замечательно!
Сносите и не сомневайтесь – ставьте WINXP 64 bit.
Ближайшее время появится новая система Windows 7 – если желаете, экспериментируйте с ней.
Поставьте на свежеустановленную 64х битную систему 64х битную же версию 3dsMax.
Рендеринг пошел?
Замечательно!



А если все таки сцена продолжает вылетать, то продолжим.
Как правило причиной этого оказывается одна (или все вместе) из следующих ошибок:

    1. Отсутствие UVW-mapping на объектах.
    2. Объекты без материалов.
    3. Объекты с не Vray materials.
    4. Объекты – пустышки.
    5. Объекты с некорректной геометрией.
    6. Значительная удаленность сцены от начала координат.

Кстати большинство проблем можно высмотреть в окне Vray log.


Конечно же лучше изначально, при создании сцены, соблюдать все правила и корректно моделировать, мапить и т.д.
Но уж если вы все-таки столкнулись с проблемой, то нужно ее решать.

Для начала сделаем merge сцены в новый файл.
Перенесем при необходимости объекты поближе к началу координат.
Чтобы гарантированно выделить все объекты, даже если они спрятаны, нажмем F11 и в появившемся окне
введем строку
select $*
выделим строчку и нажмем SHIFT + ENTER.
Вуаля – все объекты выделены!
Итак переносим все объекты поближе к центру координат.


Запускаем скрипт FixUtilities.
Download

    1. Выделяем объекты без UVW-mapping с помощью кнопки “Missing UVW”
    Аккуратненько мапим их.
    2. Выделяем объекты без материалов с помощью кнопки “Missing Material”
    Материм их. Vray material, конечно же.
    3.Высматриваем в списке используемых в сцене материалов инородные материалы и заменяем их на Vray material.
    4. Проверяем наличие в сцене объектов-пустышек с помощью кнопки “Select empty objects”
    5. Закрываем FixUtilities и рендерим сцену!

Иногда все-таки так случается, что даже после всех наших стараний сцена отказывается считаться.
Прячем поэтапно часть объектов и пытаемся считать без них.
Крайняя мера.
Надеюсь до нее не доходит.
Всем быстрых рендеров!


Posted 1 year ago.

Add a comment

  • RSS

  • 3d models Animation Beta version buy CG news Development Download FAQ FilePathFinder free PORTFOLIO Project Manager renderfarm Script Services Update History virtual tour VrayMultiStageRender Work

    3d models (6)
    CG News in Pictures (15)
    Download (1)
    FAQ (6)
    FilePathFinder (11)
    PORTFOLIO (1)
    questions (2)
    Scripts (10)
    Site (1)
    Tips & Tricks (1)
    VrayMultiStageRender (2)
    Work (2)

    WP-Cumulus by Roy Tanck and Luke Morton requires Flash Player 9 or better.

  • CG News Archive

    August 2010 (2)
    May 2010 (7)
    March 2010 (6)
  • Random Posts