Morning,
say i want to copy & paste relative reference all of obj_A's transform parameters (tran/rot/scale/pivot etc) onto obj_B, is there a quick way to do it within Houdini? or will i have to use python or other programming languages…?
eitht.
Copy/Paste relative reference multiple parameters at one go
6815 4 2-
- eitht
- Member
- 257 posts
- Joined: Nov. 2010
- Offline
-
- eitht
- Member
- 257 posts
- Joined: Nov. 2010
- Offline
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&p=105978&sid=a9ea33efe4db9b68c4bce76214f5e910 [sidefx.com]
found this thread which is what i want but honestly the solution makes little sense to me since i got little experience with python (i'm going through resources from http://www.khanacademy.org/ [khanacademy.org] now).
Would be awesome if you guys could give some pointers or share resources here for peeps keen on learning python.
eitht.
found this thread which is what i want but honestly the solution makes little sense to me since i got little experience with python (i'm going through resources from http://www.khanacademy.org/ [khanacademy.org] now).
Would be awesome if you guys could give some pointers or share resources here for peeps keen on learning python.
eitht.
-
- zdimaria
- Member
- 390 posts
- Joined: Jan. 2012
- Offline
No expert here, and not sure how much you know already but-
For knowing absolutely nothing, I would recommend following this ebook / tut - http://learnpythonthehardway.org/book/ [learnpythonthehardway.org]
Once you have a basic understanding of Python, I would then highly reccomend you watch Luke Moore's Masterclass. https://vimeo.com/14612897 [vimeo.com]
If you prefer a book book, (as I did), I would reccomend Beginning Python: From Novice to Professional by Magnus Lie Hetland.
And then of course the hou reference in the docs is great as well.
for source, target in zip(source_tuple, target_tuple):
source.set(target)
If you understand for loops, the only thing that may be new to you is zip. Its basically wrapping up 2 variables into a tuple, so that they may both be used in the for loop. If you don't understand for loops, I would start with the first tut at the top.
Hope this helps a bit… best of luck!
For knowing absolutely nothing, I would recommend following this ebook / tut - http://learnpythonthehardway.org/book/ [learnpythonthehardway.org]
Once you have a basic understanding of Python, I would then highly reccomend you watch Luke Moore's Masterclass. https://vimeo.com/14612897 [vimeo.com]
If you prefer a book book, (as I did), I would reccomend Beginning Python: From Novice to Professional by Magnus Lie Hetland.
And then of course the hou reference in the docs is great as well.
for source, target in zip(source_tuple, target_tuple):
source.set(target)
If you understand for loops, the only thing that may be new to you is zip. Its basically wrapping up 2 variables into a tuple, so that they may both be used in the for loop. If you don't understand for loops, I would start with the first tut at the top.
Hope this helps a bit… best of luck!
.
-
- eitht
- Member
- 257 posts
- Joined: Nov. 2010
- Offline
Thank you zdimaria, i'll check them out - definitely want see how python could help me more. Up till now i've been following basics, hopefully it gets me excited enough when i use it practically!
Got another question, i'm aware some functions are being used/evaluated differently in python v3.0. Are people moving on to python v3.0 or is v2.0 still what most people (especially in production) use?
eitht.
Got another question, i'm aware some functions are being used/evaluated differently in python v3.0. Are people moving on to python v3.0 or is v2.0 still what most people (especially in production) use?
eitht.
-
- zdimaria
- Member
- 390 posts
- Joined: Jan. 2012
- Offline
Im not in the real world yet so I don't know what people are using in production. I would assume, and make a strong guess that they are not using 3, and are likely using 2.6, maybe 2.7. I'm pretty sure H12 uses 2.6.4 internally.. and I don't see why studios would go through the extra effort to not use 2.6.
Again, though, not a real person yet, so all of this could be completely wrong. Maybe one of the pro-guys could chime in?
zak
Again, though, not a real person yet, so all of this could be completely wrong. Maybe one of the pro-guys could chime in?
zak
.
-
- Quick Links

