Skip to content

Commit

Permalink
asset updated
Browse files Browse the repository at this point in the history
  • Loading branch information
shervinazadi committed Jun 5, 2020
1 parent 4337188 commit f112a0b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,16 @@ This module uses the `sqlite3` standard library to replicate the houdini's geo d

## Known Issues

- currently there is no access to intrinsic attributes
- currently list attributes are not supported
- currently errors of the subprocess are not caught
- vertices can not be created or added to primitives

## Upcoming Features

- Support of list attributes
- Support of intrinsic attributes
- Suppot of adding vertex to primitives within the subpocess
- Suppot of adding and removing vertices to and from primitives within the subpocess
- Catching the errors of the subprocess
- py file watcher

---

Expand Down
Binary file modified asset/gss_call_python.hdanc
Binary file not shown.
Binary file modified example/CallPython_Example.hipnc
Binary file not shown.
Binary file modified example/CallPython_Source.hipnc
Binary file not shown.
11 changes: 5 additions & 6 deletions example/gss_call_python_example.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import sys
import pandas as pd
import sqlite3 as sq
import numpy as np


def main(points, vertices, prims, detail):
Expand All @@ -17,28 +16,28 @@ def main(points, vertices, prims, detail):
points.drop([28], inplace=True)

# add five new points
for i in range(20):
for i in range(5):
points = points.append(
{'P.X': 0.2 * i,
'P.Y': 0.0,
'P.Z': 0.0}, ignore_index=True)

# add point atribute
points['TestAttrib'] = 'abc'
points['TestPointAttrib'] = 'abc'

#############################
# Vertex Manipulation
#############################

# add vertex atribute
vertices['NV'] = 'testing...'
vertices['TestVertexAttrib'] = 'testing...done'

#############################
# Primitive Manipulation
#############################

# add prim attribute
prims['foo'] = 'myprim'
prims['TestrimitivePAttrib'] = 'myprim'

# delete prim number 28
prims.drop([28], inplace=True)
Expand All @@ -48,7 +47,7 @@ def main(points, vertices, prims, detail):
#############################

# add prim attribute
detail['detailinfo'] = 'info'
detail['TestDetailAttrib'] = 'info'

return (points, vertices, prims, detail)

Expand Down

0 comments on commit f112a0b

Please sign in to comment.