Announcement

Collapse
No announcement yet.

Auto VRayHDRI / Bitmap naming script.....

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Auto VRayHDRI / Bitmap naming script.....

    Does anyone have a script that will automatically name all VRayHDRI or Bitmap input file nodes to the root name of the source file they reference? Seems like a common thing, I am sure someone has done it.
    Figured I'd ask before wasting half day trying to figure it out as I am slow at programming. I have a scene with several hundred generically named files and materials and it'll help me sort it out and clean it up.
    -Joel E
    https://www.biglittlepictures.com

  • #2
    Code:
    for m in (getclassinstances vrayBitmap) do ( m.name = uniquename (getfilenamefile m.hdrimapname + "_") )
    Lele
    Trouble Stirrer in RnD @ Chaos
    ----------------------
    emanuele.lecchi@chaos.com

    Disclaimer:
    The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

    Comment


    • #3
      Well that is quite compact! Thanks Lele.
      -Joel E
      https://www.biglittlepictures.com

      Comment

      Working...
      X