Useful third-party CFG files

Forums: Useful third-party CFG files
Foundry Modo (Developed by stenson, Integrated Plugin developed by Paul Kinnane)

Moderator: face_off

Useful third-party CFG files

Postby face_off » Tue Feb 28, 2023 10:47 pm

face_off Tue Feb 28, 2023 10:47 pm
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
User avatar
face_off
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15481
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Re: Useful third-party CFG files

Postby Vaughan » Fri Mar 03, 2023 1:48 am

Vaughan Fri Mar 03, 2023 1:48 am
Love these Presets!
Vaughan
Licensed Customer
Licensed Customer
 
Posts: 8
Joined: Thu Feb 23, 2023 4:38 pm

Re: Useful third-party CFG files

Postby face_off » Wed Oct 25, 2023 1:08 am

face_off Wed Oct 25, 2023 1:08 am
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
User avatar
face_off
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15481
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Return to Foundry Modo


Who is online

Users browsing this forum: Google [Bot] and 22 guests

Thu Apr 25, 2024 6:56 am [ UTC ]