Useful third-party CFG files

Foundry Modo (Developed by stenson, Integrated Plugin developed by Paul Kinnane)

Moderator: face_off

Post Reply
User avatar
face_off
Octane Plugin Developer
Posts: 15681
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Hi

This thread lists useful CFG files that have been created and shared by users. Please post any contributions here, and I will add them to the list.

Modo Form Presets for Octane Metallic Material by kHellstr -> https://ko-fi.com/s/171cf3baa0 (video -> https://youtu.be/RfFxILUHVzE)

Thanks

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
Vaughan
Licensed Customer
Posts: 8
Joined: Thu Feb 23, 2023 4:38 pm

Love these Presets!
User avatar
face_off
Octane Plugin Developer
Posts: 15681
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Octane Pause/Resume toggle....thanks to Christian for this one.

1) Make a folder called lxserv in /Luxology/Scripts/ unless you already got one

2) Add octane_rendertoggle.py (below) to this new folder

Code: Select all

#python
​
import lx
import lxifc
import lxu.command
import modo
import random
​
g_currentState = False #Ben Halling did all the real work
​
​
class ToggleCmd(lxu.command.BasicCommand):
    def __init__(self):
        lxu.command.BasicCommand.__init__(self)
        self.dyna_Add("on", lx.symbol.sTYPE_BOOLEAN)
        self.basic_SetFlags(0, lx.symbol.fCMDARG_QUERY)
​
    def basic_CmdFlags(self):
        return lx.symbol.fCMD_UNDO;
​
    def cmd_Query(self, index, vaQuery):
        va = lx.object.ValueArray(vaQuery)
        va.set(vaQuery)
        va.Reset()
​
        global g_currentState
        va.AddInt(g_currentState)
​
    def basic_Execute(self, msg, flags):
        global g_currentState
​
        g_currentState = self.dyna_Int(0)
​
        if (g_currentState):
            lx.eval("octane.resume")
        else:
            lx.eval("octane.pause")
​
lx.bless(ToggleCmd, "qa.cmds.toggleExample")       
3) Then map to a key

Code: Select all

qa.cmds.toggleExample on:?+
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
Post Reply

Return to “Foundry Modo”