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
| proc _changeAbsPathToRelPath_forRealflowBIN() | |
| { | |
| string $sn = `file -q -sn`; | |
| string $sd = dirname($sn); | |
| string $buf[]={}; | |
| if(catchQuiet( $buf=`ls -type "RealflowMesh"` )) return; | |
| if(catchQuiet( $buf=`ls -type "RealflowEmitter"` )) return; | |
| clear $buf; |
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
| proc _collectFiles_forRealflowBIN() | |
| { | |
| string $sn = `file -q -sn`; | |
| string $sd = dirname($sn); | |
| string $tmp = getenv("TEMP"); | |
| string $fn = $tmp+"/"+basenameEx($sn)+"_rfbat.txt"; | |
| int $fd=fopen($fn, "w"); | |
| int $nRF = 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
| proc float _r(float $v){ | |
| float $dec=10000.0; | |
| return( int($dec*$v+0.5)/$dec ); | |
| } | |
| proc _showRealflowNodeInfo() | |
| { | |
| string $dir = getenv("TEMP"); | |
| string $fn = `file -q -sn`; | |
| $fn = $dir+"/"+basenameEx($fn)+"_rfnote.txt"; | |
| int $fd=fopen($fn, "w"); |
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
| SIGGRAPH 2013 | http://s2013.siggraph.org/attendees/attendees | ||||
|---|---|---|---|---|---|
| Courses | http://s2013.siggraph.org/attendees/courses | ||||
| 2013/07/21 | 9:00 | 12:15 | Introduction to Computer Graphics | http://s2013.siggraph.org/attendees/courses/events/introduction-computer-graphics | |
| 2013/07/21 | 9:00 | 12:15 | Mobile Game Creation for Everyone | http://s2013.siggraph.org/attendees/courses/events/mobile-game-creation-everyone | |
| 2013/07/21 | 14:00 | 17:00 | An Introduction to OpenGL Programming | http://s2013.siggraph.org/attendees/courses/events/introduction-opengl-programming | |
| 2013/07/21 | 14:00 | 17:00 | Recent Advances in Light-Transport Simulation: Theory & Practice | http://s2013.siggraph.org/attendees/courses/events/recent-advances-light-transport-simulation-theory-practice | |
| 2013/07/21 | 14:00 | 17:00 | The Digital Production Pipeline | http://s2013.siggraph.org/attendees/courses/events/digital-production-pipeline | |
| 2013/07/21 | 14:00 | 17:00 | Turbulent Fluids | http://s2013.siggraph.org/attendees/courses/events/turbulent-fluids |
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
| proc _createInstanceMesh_fromSelectedFaces(int $inv) | |
| { | |
| string $sels[]=`ls -sl`; | |
| if(size($sels)<1) return; | |
| string $nodes[]={}; | |
| for($s in $sels){ | |
| $nodes[size($nodes)] = substituteAllString($s, (match("\\.[^.:]+\[[0-9:]+\]$", $s)), ""); | |
| } | |
| $nodes = stringArrayRemoveDuplicates($nodes); |
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
| @if(0)==(0) echo off | |
| cscript.exe //NoLogo //E:JScript "%~f0" %* | |
| goto :eof | |
| @end | |
| f1: | |
| var ws = WScript; | |
| var wsh = new ActiveXObject("WScript.Shell"); | |
| var wmi = GetObject("winmgmts:\\\\.\\root\\cimv2"); | |
| var qtpr = wmi.ExecQuery("Select * from Win32_Process where name='QuickTimePlayer.exe'"); | |
| if(qtpr.Count < 1) ws.Quit(); |
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
| function _sendToClipboardStr(str) | |
| { | |
| var wsh = new ActiveXObject("WScript.Shell"); | |
| var fs = new ActiveXObject("Scripting.FileSystemObject"); | |
| var fn = wsh.Environment("Process")("TEMP") + "\\_sendToClipboard_.tmp"; | |
| var f = fs.CreateTextFile(fn, true, false); f.WriteLine(str); f.Close(); | |
| wsh.run("cmd.exe /c clip < " + fn, 0, true); | |
| } | |
| function _sendToClipboardFile(filename) | |
| { |
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
| #-------------------------------- | |
| # cfField.py: curveFlow Field | |
| #-------------------------------- | |
| import math, sys | |
| import maya.OpenMaya as om | |
| import maya.OpenMayaUI as omUI | |
| import maya.OpenMayaMPx as omMPx | |
| import maya.OpenMayaRender as omRen |
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
| proc _sendFileToClipboard(string $filename) | |
| { | |
| string $fn = $filename; | |
| if($fn=="") return; | |
| if(!`filetest -r $fn`) return; | |
| system("shell clip < \""+$fn+"\""); | |
| } | |
| _sendToClipboard("C:/TEMP/test.txt"); |
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
| proc RF_makeCopyBat() | |
| { | |
| if(!`pluginInfo -q -l "realflow"`) return; | |
| string $buf[]={}; | |
| if(catchQuiet( $buf=`ls -type "RealflowMesh"` )) return; | |
| if(catchQuiet( $buf=`ls -type "RealflowEmitter"` )) return; | |
| clear $buf; | |
| string $sn = `file -q -sn`; |