Author Topic: Ubuntu CS Env Script for Artists  (Read 2085 times)

Enaudni

  • Traveller
  • *
  • Posts: 38
    • View Profile
Ubuntu CS Env Script for Artists
« on: September 11, 2008, 10:09:14 pm »
Ever wanted to create art using blender and b2cs but don't know how?  Its a crucial thing for doing artistic development work for artists, particularly 3d artists.  I've written a script to automate it all.  At the moment there aren't a ton of options though.  Eventually I'll throw some other options in, but this really gets the basics down for you.  This isn't a script to compile parts of PS and isn't making a CS environment to compile PS against, its just to setup your artwork flow for you.  At the moment as usual it only works on Ubuntu.  Once it completes successfully, you should be able to launch blender, use b2cs (remember that you have to go through a few steps to setup the overlay interface in any new .blend file you make. I can't really script that easily.)  Documentation for that is available on http://b2cs.delcorp.org/

If this belongs more in the Development Section feel free to move it.


To use:

1.) Download by clicking on the light bulb icon link ( you may need to right click and choose: "Save Link As: "
2.) Right click  the file after its downloaded, choose properties, click the permissions tab, and check the "Allow Executing file as program" checkbox.  Hit OK.
3.) Double click the file and choose "Run In Terminal".  Command line buffs will know how to do all that from a terminal anyways.

Kubuntu users pay heed that this script utilizes zenity for a dialog so you need that installed before you utilize this script. You can do this from any command line using:

Kubuntu users:
Code: [Select]
sudo apt-get install zenity


Note: you can also obtain the script using the following command:
Code: [Select]
wget -c --no-check-certificate https://cyanox.nl/ptart/scripts/buildcsenv
Available command line options:

* skipdistcheck   - skips distrocheck that prevents script from running on non Ubuntu distros
* cegui - install only cegui
* crystalspace - install only crystalspace
* b2cs - install only b2cs
« Last Edit: September 16, 2008, 09:59:42 pm by Enaudni »
Posts: 1292 + whatever it says on the left ;)

apis

  • Hydlaa Resident
  • *
  • Posts: 72
    • View Profile
    • The Way of the Hammer
Re: Ubuntu CS Env Script for Artists
« Reply #1 on: September 12, 2008, 05:40:51 pm »
one/ bug fix. insert some line breaks into the apt-get as some of us don't use the GUI to paste into a text file and long lines tend to get broken, and it makes it easer to read (all ways a good thing).

change:
Code: [Select]
echo "Getting packages..."
sudo apt-get --assume-yes install libjpeg62-dev blender x11proto-gl-dev autoconf jam bison flex-old automake1.9 libcurl4-openssl-dev libmng-dev libmikmod2-dev libogg-dev libvorbis-dev zlib1g-dev libpng12-dev build-essential libtool libglu1-mesa-dev libglu1-xorg-dev xserver-xorg-dev libxt-dev libopenal0a libopenal-dev subversion zlibc libttf2 libfreetype6-dev libfreetype6 libasound2-dev alsa-oss libxxf86vm-dev libxext-dev x11proto-xext-dev python-imaging libboost-dev libboost-python-dev libxerces27-dev libode0-dev swig libpcre3-dev

if [ $? -ne "0" ] ; then

to:
Code: [Select]
echo "Getting packages..."
sudo apt-get --assume-yes install libjpeg62-dev blender x11proto-gl-dev autoconf jam bison flex-old automake1.9 libcurl4-openssl-dev libmng-dev \
libmikmod2-dev libogg-dev libvorbis-dev zlib1g-dev libpng12-dev build-essential libtool libglu1-mesa-dev libglu1-xorg-dev xserver-xorg-dev libxt-dev \
libopenal0a libopenal-dev subversion zlibc libttf2 libfreetype6-dev libfreetype6 libasound2-dev alsa-oss libxxf86vm-dev libxext-dev x11proto-xext-dev \
python-imaging libboost-dev libboost-python-dev libxerces27-dev libode0-dev swig libpcre3-dev

if [ $? -ne "0" ] ; then

two/ bug fix. my install od blender has  its .blender/scripts/bpymodules linked
Code: [Select]
/home/charles/.blender/scripts/bpymodules -> /usr/share/blender/scripts/bpymodulesthrid/ do we need to cp the .svn dirs?
forth/ it might pay to do a chmod on some of tthe copyed files.
« Last Edit: September 12, 2008, 06:02:17 pm by apis »
Apis - The Way of the Hammer

Enaudni

  • Traveller
  • *
  • Posts: 38
    • View Profile
Re: Ubuntu CS Env Script for Artists
« Reply #2 on: September 12, 2008, 05:57:45 pm »
Good idea, let me know if you have any more improvement suggestions.

Regards,


Update:

Made some changes that didn't address 2 through 4 ;) I'll get to those though, I just hadn't noticed them before.
« Last Edit: September 16, 2008, 08:08:26 pm by Enaudni »
Posts: 1292 + whatever it says on the left ;)

Enaudni

  • Traveller
  • *
  • Posts: 38
    • View Profile
Re: Ubuntu CS Env Script for Artists
« Reply #3 on: October 07, 2008, 11:43:05 pm »
I've updated the script again, its now in the PT repos so I can keep revision track. The listed command in the first post should help you retrieve it.  It now supports some new syntax for multiple command line switches.

Examples:

Run default install but skip the check that makes sure you are running on Ubuntu.
Code: [Select]
./buildcsenv skipdistcheck
Skip distro check and compile cegui only
Code: [Select]
./buildcsenv skipdistcheck cegui
Skip distro check and install only b2cs
Code: [Select]
./buildcsenv skipdistcheck b2cs
Skip the distro check and install only crystalspace
Code: [Select]
./buildcsenv skipdistcheck crystalspace
Install only b2cs
Code: [Select]
./buildcsenv b2cs
I think you get the picture.  The skip dist check is handy for people who aren't on ubuntu but might want to setup b2cs automatically.  Its still got alot of code that might not work across all distro's though but I'm working on lessening that.

I've also cleaned up alot of if then statements and replaced them with simple case statements which will help extensibility and readability.  Hope someone finds this useful!
Posts: 1292 + whatever it says on the left ;)