You are currently browsing the questions 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

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

  • 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