View Full Version : Greeble Script
Not sure where to put an work-in-progess script. In the script section you can't post any postings
I'm doing my own greeble script at the moment (there is already Helge's script in NetView, but the more the better ;) )
How to:
- unpack file
- open .js in Plug-in Manager
- select Polygons
- Deform - Greeble
Edit: Updated version! Download (http://migaweb.de/downloads.php?did=22)
Ooops
03-13-2008, 09:43 AM
Thank you very much for sharing this.
Devenish
03-13-2008, 03:58 PM
Thanks, finaly I can have fun with greeble's without having to go load up Lightwave.
i3D_Jack
03-17-2008, 12:43 AM
awesome, I love greeble! :biggrin:
Zac-Donald
03-17-2008, 12:58 AM
whats Greeble...
just a broken up and extruded polygon (http://en.wikipedia.org/wiki/Greeble)
McNistor
03-17-2008, 09:41 AM
Thank you miga (http://community.softimage.com/member.php?u=179)!
softy
05-01-2008, 09:44 AM
Hi, I'm new here. It seems that I'm unable to download the script. Is there anyway that to download it? Thanks!!
wailingmonkey
05-01-2008, 12:26 PM
looks fun...thanks for sharing, miga! :)
GeneCrucean
05-01-2008, 09:44 PM
Doesn't work for me.
CreatePrim "Sphere", "MeshSurface"
SetValue "greeble.Height", 2.989
ApplyTopoOp "SlicePolygons", "sphere", siUnspecified, siPersistentOperation
SetValue "sphere.polymsh.slicepolygonsop.nbslices", "greeble.Details"
SetValue "sphere.polymsh.slicepolygonsop.slicescoverbbox", True
ApplyTopoOp "SlicePolygons", "sphere", siUnspecified, siPersistentOperation
SetValue "sphere.polymsh.slicepolygonsop[1].sliceplane", 2
SetValue "sphere.polymsh.slicepolygonsop[1].nbslices", "greeble.Details"
SetValue "sphere.polymsh.slicepolygonsop[1].slicescoverbbox", True
ApplyTopoOp "SlicePolygons", "sphere", siUnspecified, siPersistentOperation
SetValue "sphere.polymsh.slicepolygonsop[2].sliceplane", 1
SetValue "sphere.polymsh.slicepolygonsop[2].nbslices", "greeble.Details"
SetValue "sphere.polymsh.slicepolygonsop[2].slicescoverbbox", True
' ERROR : Object doesn't support this property or method - [line 165 in C:\users\gene\Softimage\XSI_6.5\Application\Plugin s\greeble1.js]
' ERROR : Property Page Script Logic Error (Microsoft JScript runtime error)
' ERROR : [163] SetValue(b+".nbslices", details, null);
' ERROR : [164] SetValue(b+".slicescoverbbox", true, null);
' ERROR : >[165] return selection(0).subcomponent.componentcollection;
' ERROR : [166] }
' ERROR : [167]
' ERROR : [168] function work(polys){
' ERROR : Object doesn't support this property or method
SetViewDisplayMode
Hi,
sorry haven't had time to look after the script anymore. This problem occurs if there any more polys in the selection. I will try to change the script a bit to make it less painful to use
New script at: Download (http://migaweb.de/downloads.php?did=22)
Fixes some problems and now extrudes all polygons in local-y
coolroy
10-08-2008, 05:22 AM
Hi Michael! Thank you for sharing your script!
Just wondering, is it possible to make your script interactive as in 3d max version or this is requering heavy с++ coding?
Not sure what you mean with "interactive". But since I'm not freezing the mesh you can control the extrude height by changing the lenght value of the extrusionOp on the mesh (and even animate it then).
I did some early testing to write a c++ version but didn't came that far yet. Basically I don't want to use the XSI extrude operator and create an own one (less output and faster :) ). But that will take some more time
StefanA
10-08-2008, 07:42 AM
it breaks for me at line 77 (using xsi 7.0 linux64)
// ERROR : Property Page Script Logic Error (Microsoft JScript runtime error)
// ERROR : [75] SetValue(subd+".subdivisions", Subdivision, null);
// ERROR : [76]
// ERROR : >[77] p_all = selection(0).subcomponent.componentcollection;
// ERROR : [78] for (j=0;j<Loop;j++){
// ERROR : [79] work();
// ERROR : [80] if (j<Loop-1){
// ERROR : Object doesn't support this property or method
druitre
10-08-2008, 07:43 AM
thanks, always good to have greebles
StefanA
10-08-2008, 07:45 AM
Works if I go in to polymode and select a few and then run the script. And it would be nice to also have some randomize function for the height.
regards
stefan
StefanA (http://community.softimage.com/member.php?u=1283): You have to be in polygon selection and some should be selected. Did you do that? If yes, please describe your steps that produced that error
Edit: Ok, see you got it fixed :) Will add a random height value now
StefanA
10-08-2008, 07:53 AM
perhaps you should add a little 'check' to see if the user has any selected polygons, if the user hasn't.. then select all polys of the object.
regards
stefan
Did that after your first post ;) Will upload a new version later. At the moment i'm playing around with a random height. As soon as that is done I will upload it again (perhaps even with a progress bar ;))
coolroy
10-08-2008, 08:33 AM
http://vimeo.com/1912254
here is what I mean
ah ok. I see that the max version adds geometry on the surface, like ThomasHelzle (http://community.softimage.com/member.php?u=700)'s ICE version: http://community.softimage.com/showthread.php?t=2636.
I think it you could do that with ICE too. Create three objects (cube, L, T) and distrubute them on the object and resize them.
Updated my script a bit:
- error message if not in polygon selection
- min/max height (only per extrude, not individual polygons)
- progress bar (not working 100% but at least you can cancel now :))
Download (http://migaweb.de/downloads.php?did=22)
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.