Need help creating first Python script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I need help creating a quick Python script.
I'm trying to "export" a representation of my joint hierarchy to ZBrush so I can use it as a guide for sculpting. I can't find a way to convert the joints to geometry, so instead I want to add some geometry to each joint and export that. I thought it'd be easiest to write a python script to do this. What I want to do is really simply:
- Specify a starting joint
- Select all joints in the hierarchy
- For each joint do the following:
- create a sphere
- set radius
- parent the sphere to the joint
- make sure the sphere is at the joint's location
I would then have some geometry that I can export to Zbrush to use as a guide!
Can anyone tell me what my script should look like? I've tried to use and edit other scripts I've found online, but this is my first time trying to write a script in Python and I don't really know what I'm doing.