SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

SM Forums / Maya Questions / Programming / Maya Python: Building Generator Script Issues

Programming MEL Scripts, Expressions & Programming Related Topics

Join the conversation. Reply to post
Thread Tools
13-12-2018, 09:12 PM   #1
Registered User
Join Date: Dec 2018
Posts: 1
Maya Python: Building Generator Script Issues
Hello! I just thought I'd post on here to see if anyone wouldn't mind helping me fix a few issues I'm having with my script. I'm very new to this whole Maya Python thing, and was wondering if anyone wouldn't mind taking a look at what I have?

The Goal:
I'm trying to create a building generator that spawns building pieces based on while loop iterators. I'm trying to get the BBox value for the Width and Height of a given model, and use the iterator to duplicate, move, and rotate based on the UI input.

Here's what's working and what isn't:

What's Working:
  • Builds window sections, freezes pivot, and translates on top of the ground plane.
  • Groups window sections into a single "building".
  • User Interface spawns with intSliderGrps and text fields.

What's Not Working:
  • The windows are no longer being generated based on my while loops I created for the duplication and rotation of the window panel.
  • I'm not able to get the result of the xmax - xmin and assign that as my window "Width" as well as subtracting the ymax from the ymin to get the "Height".
  • the UI values aren't making that connection to my while loops so my UI knows how many sections of window panel it needs.

If anyone has any idea what I'm doing wrong or how I could go about doing this more efficiently, I'd love for some feedback!

Thanks so much!
Attached Files
File Type: txt buildingGeneratorScript.txt (5.9 KB, 507 views)
  Reply with quote

globals , maya , python , unique , variables

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Maya instancer Every Frame ReCalculate Problem..!! bymak Maya Technical Issues 0 10-11-2018 09:54 AM
How to install PyMel and Python scripts in Maya 2008? Nixa Maya Basics & Newbie Lounge 0 01-04-2014 08:41 AM
Building a Dedicated Maya Computer Part 2 animaguy Maya Basics & Newbie Lounge 10 08-03-2012 04:28 AM
remove maya 8`s primative building change tweetytunes Maya Modeling 3 08-11-2006 11:04 PM
Use Maya For Game... Why Maya? Triple-x Maya Basics & Newbie Lounge 14 02-09-2005 09:07 PM