Announcement

Collapse
No announcement yet.

Runing Scene Converter macro script trough another script

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

  • Runing Scene Converter macro script trough another script

    Hello.

    I'm trying to write a small script to clean asset files but when I invoque the Scene Converter the rollout pops up and stops waiting for me to press the convert button.
    I want to run it automaticly but I don't know the right way to do it throug scripting.

    Here is the script so far:

    -- Reset V-Ray
    renderers.current = Default_Scanline_Renderer ()
    renderers.current = V_Ray_Next__update_3 ()

    -- Clean Material Editor
    macros.run "Medit Tools" "clear_medit_slots"

    -- Set Viewport to Standard
    actionMan.executeAction -844228238 "13"

    -- Run V-ray Scene Converter
    macros.run "VRay" "VRaySceneConverter"

    -- Viewport Materials Display as Shaded with Maps
    actionMan.executeAction 0 "63545"
    www.gaell.com

  • #2
    I'm not sure if there is away to click that button using Maxscript.
    But if you want, you can check Vrayutils.ms file that include the converter scripts and then just take that part and put it in a separate script and call it using Filein command .
    someone did something like this with UI but based on the old converter ( no corona conversation back then )
    https://forums.chaosgroup.com/forum/...atch-operation

    If there is easier way I would like to know it too : ))


    -------------------------------------------------------------
    Simply, I love to put pixels together! Sounds easy right : ))
    Sketchbook-1 /Sketchbook-2 / Behance / Facebook

    Comment

    Working...
    X