Jump to content

Mod Tool/Scripting: Difference between revisions

m
correction on hierarchy
(read and write text file, change position of object and scene fundamentals)
m (correction on hierarchy)
Line 1,151: Line 1,151:




====Materials and textures====
===Materials and textures===
=====Get all targets of an image clip=====
====Get all targets of an image clip====
  set imgClip = GetValue("Clips._marker_blackness_tga")
  set imgClip = GetValue("Clips._marker_blackness_tga")
  set imgClipTargets = imgClip.GetShaderParameterTargets
  set imgClipTargets = imgClip.GetShaderParameterTargets
Line 1,162: Line 1,162:




=====Get all material libraries and materials=====
====Get all material libraries and materials====
  for each ml in Application.ActiveProject.ActiveScene.MaterialLibraries
  for each ml in Application.ActiveProject.ActiveScene.MaterialLibraries
  logmessage ml
  logmessage ml
Line 1,188: Line 1,188:




=====Check an object's main material for TwoSided-ness=====
====Check an object's main material for TwoSided-ness====
  ' test and toggles an object's main material for TwoSided-ness
  ' test and toggles an object's main material for TwoSided-ness
  ' this is also a prerequired test for transparency
  ' this is also a prerequired test for transparency
8,323

edits