Announcement

Collapse
No announcement yet.

multi-object BakeOption using MayaBatch

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

  • multi-object BakeOption using MayaBatch

    Hello

    Is there a way to perform a multi-object BakeOption using MayaBatch/Deadline?

    Even if I set the following to Pre Render MEL, MayaBatch does not process this Pre Render MEL.
    Code:
    select -r pCube1 pCylinder1 pTorus1; vrayStartBake;
    Verified with V-Ray 6 update2 Maya 2024


    OakCorp Japan - Yuji Yamauchi
    oakcorp.net
    v-ray.jp

  • #2
    Works fine on my end, however, since no VRayBakeOptions are set there won't be an output.​ Try this:

    Code:
    select -r pCube1 pCylinder1 pTorus1;
    optionVar -intValue "vrayBakeType" 2;
    optionVar -intValue "vraySkipNodesWithoutBakeOptions" 0;
    optionVar -intValue "vrayAssignBakedTextures" 0;
    optionVar -stringValue "vrayBakeOutputPath" "path/to/scene/";
    optionVar -intValue "vrayBakeProjectionBaking" 0;
    vrayStartBake;​
    In this case:
    1. Geometry is selected
    2. Objects to Bake is set to Selected.
    3. Skip objects with no VRayBakeOptions assigned is unticked
    4. Assign baked textures is unticked
    5. Make sure you use "/" in the path
    6. Project Baking is unticked

    More info here.
    Last edited by hermit.crab; 22-07-2024, 01:32 AM.
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      Thank you for your advice. It worked!

      PS: The second line of your code is "ptionVar". The correct name is "optionVar".


      OakCorp Japan - Yuji Yamauchi
      oakcorp.net
      v-ray.jp

      Comment

      Working...
      X