
http://medikalesha.d...et/skypeDLA.jpg
A 4k version of the 8k original.
Posted 22 October 2008 - 05:43 AM
Posted 24 October 2008 - 04:49 AM

Posted 24 October 2008 - 05:26 AM
Posted 25 October 2008 - 08:03 AM


Posted 26 October 2008 - 02:06 AM

Houdini Help said:
Houdini Console said:
rdg_ogl2_deepcolor.tar.gz (149.56K)
Posted 27 October 2008 - 09:24 AM

This post has been edited by rdg: 28 October 2008 - 12:52 AM
Posted 29 October 2008 - 05:51 AM

#!/usr/bin/env python import MySQLdb # connect to MySQL DB conn = MySQLdb.connect (host = "localhost", user = "root", passwd = "", db = "preset") cursor = conn.cursor() query = """ CREATE TABLE `preset`.`sphericalHarmonics` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , `M0` SMALLINT NOT NULL DEFAULT '0', `M1` SMALLINT NOT NULL DEFAULT '0', `M2` SMALLINT NOT NULL DEFAULT '0', `M3` SMALLINT NOT NULL DEFAULT '0', `M4` SMALLINT NOT NULL DEFAULT '0', `M5` SMALLINT NOT NULL DEFAULT '0', `M6` SMALLINT NOT NULL DEFAULT '0', `M7` SMALLINT NOT NULL DEFAULT '0', `frame` INT NOT NULL DEFAULT '0' ) ENGINE = MYISAM """ try: cursor.execute(query) except: print "Table already exists.\nSkipping."

# Produced by:
# Georg Duemlein
# http://www.preset.de/
#
# Prints parameters of Spherical Harmonics to XML file ...
#
import soho
from soho import SohoParm
import hou
import time
controlParameters = {
"now":SohoParm("state:time", "real", [0], False, key="now"),
"mode":SohoParm("soho_outputmode", "int", [0], False, key="mode"),
'harmonic' : SohoParm('harmonic_path', 'string', ['/obj/geo_setzkasten/rdg_sphericalharmonics1'], False, key="harmonic")
}
parmlist = soho.evaluate(controlParameters)
FrameTime = parmlist["now"].Value[0]
mode = parmlist["mode"].Value[0]
harmonic = parmlist["harmonic"].Value[0]
if not soho.initialize(FrameTime):
print "-1"
else:
item = hou.node(harmonic)
if mode == 1:
print "<generic>"
# output NULL for autoincrement
if mode == 1:
print "\t<id>NULL</id>s"
else:
print "NULL"
# output the parameters
for i in range(0, 8):
parmvalue = str(item.parm("m" + str(i)).eval())
if mode == 1:
print "\t<ident id='%s'>%s</id>" % (i, parmvalue)
else:
print parmvalue
# generate and outout current frame Number
# mark (http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=11061&highlight=soho+frame)
now = soho.getDefaultedFloat('state:time', [0])[0] # Get the time that the ROP evaluation time
FPS = soho.getDefaultedFloat('$FPS', [24])[0] # Evaluate the $FPS variable
frame = int(round(now * FPS + 1)) # Compute the frame number
if mode == 1:
print "\t<frame>%s</frame>" % (frame)
else:
print frame
if mode == 1:
print "</generic>"<generic> <id>NULL</id>s <ident id='0'>8</id> <ident id='1'>0</id> <ident id='2'>5</id> <ident id='3'>2</id> <ident id='4'>3</id> <ident id='5'>5</id> <ident id='6'>2</id> <ident id='7'>4</id> <frame>1</frame> </generic>
chmod a+x ./mapper
#!/usr/bin/env python
# Georg Duemlein
# http://www.preset.de
# SOHO_pipecmd to store stuff in a database
import sys
import MySQLdb
content = []
for line in sys.stdin:
content.append(line.strip())
if content[0] == '-1':
print "No Harmonics SOP specified.\nSkipping."
else:
data = ", ".join(map(str, content))
try:
conn = MySQLdb.connect (host = "localhost",
user = "root",
passwd = "",
db = "preset")
except:
sys.exit(1)
cursor = conn.cursor()
query = "INSERT INTO sphericalHarmonics () VALUES (" + data + ")"
try:
cursor.execute(query)
except:
sys.exit(2)
This post has been edited by rdg: 29 October 2008 - 06:04 AM
Posted 29 October 2008 - 04:42 PM
Posted 29 October 2008 - 11:37 PM
pclaes, on Oct 30 2008, 01:42 AM, said:
Quote
Posted 30 October 2008 - 01:23 AM
rdg, on Oct 30 2008, 08:37 AM, said: