This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import glob | |
| import subprocess | |
| def we_startConversion(): | |
| #Double check overwrite | |
| if hou.pwd().parm("cbOverwrite").eval() == 1: | |
| if hou.ui.displayMessage("Are you sure you want to overwrite RAT files?", buttons=("Yes", "No")) == 1: | |
| hou.pwd().parm("cbOverwrite").set(0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Removes a whole column from a multidimensional resultset. | |
| * You could use the array_splice function, this is a bit slower (10.3%) but defragments the empty positions | |
| * in the internal php array. Use this when removing a lot of columns on big (huge) resultsets. | |
| * | |
| * @param $aArray | |
| * @param $sKey | |
| * @return bool | |
| */ | |
| function deleteMultidimensionalColumn(&$aArray, $sKey, $bUseSplice = false) { |
NewerOlder