Thursday, July 25, 2024
Tuesday, July 23, 2024
Wednesday, June 26, 2024
[Python]Fill in the code in wangle by python
node = hou.selectedNodes()[0]
geo = node.geometry()
--------------------------
--sample1).
Tuesday, May 28, 2024
[Exp] Houdini super simple luncher
I made super simple Houdini luncher for multiple version with ChatGPT. Also, I successfully installed AWS "deadline" except H20.
-Issue: Can't find deadline node on H20.
The Houdini launcher batch is below.
----------------
Tuesday, November 14, 2023
[Hython]Shows a list of default path.
How to display a list of directories where Houdini reads for Python files by default.
>>> import sys
>>> a = sys.path
>>> for i in a:
... print i
...
C:/PROGRA~1/SIDEEF~1/HOUDIN~1.759/python27/lib/site-packages-ui-forced
C:/Users/user01/Documents/houdini18.5/python2.7libs <------- I confirmed adding the directory.
Monday, November 6, 2023
[Python] Basic syntax
- range()
>>> range(10)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> range(5,10)
[5, 6, 7, 8, 9]
>>> list(range(0,10,3))
[0, 3, 6, 9]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> range(5,10)
[5, 6, 7, 8, 9]
>>> list(range(0,10,3))
[0, 3, 6, 9]
>>> list(range(10,0,-3))
[10, 7, 4, 1]
range(stop) 0 ≦ i < stop
range(start, stop) start ≦ i < stop
range(start, stop, step) start ≦ i < stop
range(stop, start, -step) stop ≧ i > start
- for()
>>> names = ['pico', 'ted', 'hop']
>>> for i in names:
... print i
pico
ted
hop
- remove(), del()
>>> names = ['pico', 'ted', 'hop']
>>> names.remove('pico')
>>> names
['ted', 'hop']
>>> names.pop(1)
'hop'
>>> names
['ted']
- random(), uniform(), randrange(), randint()
>>> num = range(5)
>>> num
[0, 1, 2, 3, 4]
>>> random.randint(0, len(nums)-1)
4
Monday, September 12, 2022
[Dos]robocopy
◆robocopy : Synchronize the contents of two folders
ex.)
robocopy source destination [file [file]...] [options]
Subscribe to:
Posts (Atom)