Random scale help

   17876   10   3
User Avatar
Member
14 posts
Joined: Feb. 2008
Offline
I have a cube, that I want to copy to a grid, but have the cubes taller in the center, they would scale down as the got to the edge of the gird.

try to make a “city” like grouping of polys

any thoughts?

TIA
User Avatar
Member
1390 posts
Joined: July 2005
Offline
Reference in BoxSOP paremeter sizey (“Size”) in ty (“Center” in GUI). You can do this with drag and drop. Then divide it by 2. So in Center Y-axe field you should have something like: ch(“sizey”)/2.

Alternatively you could reposition pivot of a cube, for example with an expression like $YMIN which is valid in TransformSOP.


hope this helps,
sy.
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
read through this entire thread…then go back and download some of the sample files (some may not work 100% - H8 v H9)
you'll learn a ton about exactly what you're trying to do


http://forums.odforce.net/index.php?showtopic=3156&hl= [forums.odforce.net]
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
14 posts
Joined: Feb. 2008
Offline
you have lost me sorry.

would I use some random function in the copy SOP?
User Avatar
Member
1145 posts
Joined: July 2005
Offline
You could use the Paint sop and the Copy sop stamp function. See enclosed example.

Attachments:
paint_height_stamp.hip (47.7 KB)

“gravity is not a force, it is a boundary layer”
“everything is coincident”
“Love; the state of suspended anticipation.”
User Avatar
Member
14 posts
Joined: Feb. 2008
Offline
Got it too work using the STAMP fuction, with scale and height rand(“../copy1 etc. looks good… but Im wondering is there away to have those box ”placed"
on a sphere… like buildings on the earth, I hope I can be understood.

thanks again for all this help!!!
User Avatar
Member
1529 posts
Joined: July 2005
Offline
You can simply replace the grid in Peter's example with a sphere.

Make sure you change the type to polygon (in the sphere sop)

Best,

Gene

Edited by - Feb. 14, 2008 17:23:54
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
in that file
put
ch(“sizez”)/2

in the “center z” parameter of the box1 SOP
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
14 posts
Joined: Feb. 2008
Offline
keyframe
You can simply replace the grid in Peter's example with a sphere.

Make sure you change the type to polygon (in the sphere sop)

Best,

Gene

One more thing them Im stopping for the night… my brain hurts.
If I still want to see the sphere that the boxes were copied to… like the ground they rest on, how would I do that.

Man this software is cool!
User Avatar
Member
1529 posts
Joined: July 2005
Offline
put down a merge sop, and connect both the output of the copy sop, and the sphere into it. set the display flag to the merge sop.

Gene
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
and just to be helpful…
the reason the sphere goes away is because you're only using it's points as a template to copy the boxes on to…by adding a merge SOP you can add the original sphere back into the geometry.
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
  • Quick Links