Found 34 posts.
Search results Show results as topic list.
MARDINI Daily Challenge 2021 » Day 6 Animation | Motion | Flow
- Kym Watts
- 34 posts
- Offline
MARDINI Daily Challenge 2021 » Day 5 Image | Motion | Crash
- Kym Watts
- 34 posts
- Offline
MARDINI Daily Challenge 2021 » Day 4 Image | Motion | Escape
- Kym Watts
- 34 posts
- Offline
day 4 escape.
im sorry, i got nothing for this, but i used a render engine instead of the viewport, woo!
im sorry, i got nothing for this, but i used a render engine instead of the viewport, woo!
MARDINI Daily Challenge 2021 » Day 3 Image | Motion | Leap
- Kym Watts
- 34 posts
- Offline
MARDINI Daily Challenge 2021 » Day 2 Animation | Motion | Grow
- Kym Watts
- 34 posts
- Offline
day2 grow.
Driven off the real time data of my home backup system as it gets closer and closer to running out of disk space, only showing every second days worth of disk usage.
Driven off the real time data of my home backup system as it gets closer and closer to running out of disk space, only showing every second days worth of disk usage.
MARDINI Daily Challenge 2021 » Day 1 | Motion | Bounce
- Kym Watts
- 34 posts
- Offline
was hoping to get my fish to bounce around inside of its fish bowl, but couldnt for the life of me figure that out.
Technical Discussion » Point Instance procedural and orient attibute
- Kym Watts
- 34 posts
- Offline
Hi jsmack,
So the changes i made to the above, based on your information look like:
This give me some rotations, which is good, ill have to go back to my larger data set to see if matches what is coming from maya.
**edit, confirmed this gives me the correct rotations im after, thanks for your help.
Cheers
kym
So the changes i made to the above, based on your information look like:
geo.addAttrib(hou.attribType.Point, "orient",hou.Quaternion()) #per point qu = hou.Quaternion() qu.setToRotationMatrix(m4.extractRotationMatrix3()) point.setAttribValue("orient", qu)
This give me some rotations, which is good, ill have to go back to my larger data set to see if matches what is coming from maya.
**edit, confirmed this gives me the correct rotations im after, thanks for your help.
Cheers
kym
Edited by Kym Watts - 2020年6月11日 17:01:14
Technical Discussion » Point Instance procedural and orient attibute
- Kym Watts
- 34 posts
- Offline
Hello,
I having a ton of trouble getting my head around this, I have a python sop, that is creating my point cloud.
Im giving is a postition & scale, those work correctly, but the orient is not.
In the attribute spread sheet, i can see the 3 params for the orient, all have values.
I simplified the code to include some transforms, originally they are coming from some worldspace maya transforms, but to confirm i wasnt going crazy i took a few from the moana island data set.
C:/leaf.obj , is a leaf geometry, but i have tried with a grid that is scales to be a rectangle.
Once this executes, i can see my leaves, positioned and scaled in the scene view, but they have no rotation
If someone can point me in the right direction would be fantastic.
Cheers
Kym
I having a ton of trouble getting my head around this, I have a python sop, that is creating my point cloud.
Im giving is a postition & scale, those work correctly, but the orient is not.
In the attribute spread sheet, i can see the 3 params for the orient, all have values.
I simplified the code to include some transforms, originally they are coming from some worldspace maya transforms, but to confirm i wasnt going crazy i took a few from the moana island data set.
C:/leaf.obj , is a leaf geometry, but i have tried with a grid that is scales to be a rectangle.
node = hou.pwd() geo = node.geometry() pivot = {0,0,0} v3 = hou.Vector3 (1,0,0) m = hou.Matrix4() geo.addAttrib(hou.attribType.Point, "orient",v3) geo.addAttrib(hou.attribType.Point, "pscale",1.0) geo.addAttrib(hou.attribType.Point, "instancefile", "") # some test ws xforms transforms = [ [ 0.9476891756057739, -0.3092913031578064, 0.07889299094676971, 0.0, -0.06873862445354462, 0.043607283383607864, 0.9966812133789062, 0.0, -0.3117051422595978, -0.9499669671058655, 0.02006589248776436, 0.0, 50.91556930541992, 113.11812591552734, -17.59348487854004, 1.0 ], [ 0.011039327830076218, -0.2005908042192459, 0.7990818023681641, 0.0, -0.4085596799850464, 0.6926376819610596, 0.17951379716396332, 0.0, -0.7154367566108704, -0.39863455295562744, -0.09018410742282867, 0.0, 95.37860107421875, 94.6856689453125, -21.098573684692383, 1.0 ], [ -0.7893863320350647, 0.09577027708292007, -0.10461504757404327, 0.0, 0.11940404027700424, 0.7679983973503113, -0.1979062259197235, 0.0, 0.07654441148042679, -0.2103620171546936, -0.7701525092124939, 0.0, 178.22116088867188, 64.501220703125, 24.868995666503906, 1.0 ], [ -0.16089898347854614, 0.0215655155479908, -0.6914180517196655, 0.0, 0.16879704594612122, 0.6896406412124634, -0.017770059406757355, 0.0, 0.6708438992500305, -0.16835418343544006, -0.16136221587657928, 0.0, 134.9632568359375, 138.3452911376953, 109.56019592285156, 1.0 ], [ 0.12487196922302246, -0.0351731963455677, -0.7897642850875854, 0.0, 0.36846989393234253, 0.709984540939331, 0.026640724390745163, 0.0, 0.6994245052337646, -0.3677535653114319, 0.1269664615392685, 0.0, 82.2651596069336, 77.03775787353516, 112.33985137939453, 1.0 ], ] for world_space in transforms: m4 = hou.Matrix4(world_space) point = geo.createPoint() if point != None: # get the point location point.setPosition(m4.extractTranslates('srt')) # get its orient point.setAttribValue("orient", m4.extractRotates('srt')) #print m4.extractRotates('srt') i can see that this is different # get the uniform scale point.setAttribValue("pscale", (sum(m4.extractScales('srt')))/3.0) # set the leaf file point.setAttribValue("instancefile", "C:/leaf.obj")
Once this executes, i can see my leaves, positioned and scaled in the scene view, but they have no rotation
If someone can point me in the right direction would be fantastic.
Cheers
Kym
Houdini Indie and Apprentice » transform node seems to apply to all when in sceneview
- Kym Watts
- 34 posts
- Offline
Thanks, i kinda understand what i did, in the scene view, i did not have create in context on, so when i was selecting Focus on scene, yes i was moving the group/ geometry folder with everything in it.
thanks
thanks
Houdini Indie and Apprentice » transform node seems to apply to all when in sceneview
- Kym Watts
- 34 posts
- Offline
Hi ,
learning/relearning etc.
Following a tutorial where for the first time in awhile i need to do transforms in the scene view.
To try and make it super simple to explain i have a grid and a cube.
I have put a transform node on the cube, i have moved it within the scene view, though when i go to look at the grid in reference or as display, it has moved as well.
Im not quite sure i under stand the mechanics at play here, the transform should just apply to the cube correct?
What part did i miss?
im following a tutorial step by step that was done in 17.5.173, im using 18.0.416-indie. In case that makes a difference.
Cheers
Kym
learning/relearning etc.
Following a tutorial where for the first time in awhile i need to do transforms in the scene view.
To try and make it super simple to explain i have a grid and a cube.
I have put a transform node on the cube, i have moved it within the scene view, though when i go to look at the grid in reference or as display, it has moved as well.
Im not quite sure i under stand the mechanics at play here, the transform should just apply to the cube correct?
What part did i miss?
im following a tutorial step by step that was done in 17.5.173, im using 18.0.416-indie. In case that makes a difference.
Cheers
Kym
Edited by Kym Watts - 2020年5月10日 19:36:47
Technical Discussion » transforming static alembic geometry from matrix
- Kym Watts
- 34 posts
- Offline
Hi Tomas,
Thanks for your help,
I ended out going down the python sop path to create a point cloud with information.
I created a parm per point with an interger that i could map the alembic with switch and copy stamp.
But reading about this now ill probably refactor to use a foreach node.
Cheers
Kym
Thanks for your help,
I ended out going down the python sop path to create a point cloud with information.
I created a parm per point with an interger that i could map the alembic with switch and copy stamp.
But reading about this now ill probably refactor to use a foreach node.
Cheers
Kym
Technical Discussion » Python: add attr to root template folder and switch order
- Kym Watts
- 34 posts
- Offline
so i figured out the switch problem, it looks like its just easier to rebuild the input list from scratch if i want to reorder things.
Still interested in knowing how to add to the root folder for parms on an node.
You can do this by hand in the Parameter interface, but i cant seem to figure this out in python.
Any thoughts?
Cheers
Kym
n.setInput(<input number>, <childnode>)
Still interested in knowing how to add to the root folder for parms on an node.
You can do this by hand in the Parameter interface, but i cant seem to figure this out in python.
Any thoughts?
Cheers
Kym
Technical Discussion » python: Layout functions for nodes
- Kym Watts
- 34 posts
- Offline
Hello,
Is there a way to call the nodegraphs layout functions for nodes, given a selection?
I can see that there is a, Is there a way to access the Layout nodes Up / left or right from python?
Also is there a way to know the max outputs for a subnet or create more?
i have apile of geo & alembics plugged into a switch node for stamping that id like to clean up, there could be 10, 50 or 100+ depending on the shot. i tried to stick them in a subnet, but the amount of connections from the subnet to the switch seems to get truncated.
Cheers
Kym
Is there a way to call the nodegraphs layout functions for nodes, given a selection?
I can see that there is a
hou.node.layoutChildren
Also is there a way to know the max outputs for a subnet or create more?
i have apile of geo & alembics plugged into a switch node for stamping that id like to clean up, there could be 10, 50 or 100+ depending on the shot. i tried to stick them in a subnet, but the amount of connections from the subnet to the switch seems to get truncated.
Cheers
Kym
Technical Discussion » Python: add attr to root template folder and switch order
- Kym Watts
- 34 posts
- Offline
Hi there,
Two things im trying wrap my head around in hom/python.
On a node like a python sop, when you add an attribute manually, it gets added to the root folder?
I can see that entries/ attributes can be stored at root via:
node.parmTemplateGroup().entriesWithoutFolders()
All the code examples i can see, when i add a attribute via python it has to be via a folder.
Is there something im missing?
Secondly, on a switch node, how can i query/ update/ reorder things plugged in via python?
Cheers
Kym
Two things im trying wrap my head around in hom/python.
On a node like a python sop, when you add an attribute manually, it gets added to the root folder?
I can see that entries/ attributes can be stored at root via:
node.parmTemplateGroup().entriesWithoutFolders()
All the code examples i can see, when i add a attribute via python it has to be via a folder.
Is there something im missing?
Secondly, on a switch node, how can i query/ update/ reorder things plugged in via python?
Cheers
Kym
-
- Quick Links