灵感

MASH - Screws (Python Node)

2016年04月25日 00:04 ·
...展开
收起
A much simpler set up than it looks (if you know some Python):
Grid distribution
Offsett node (position) using noise on the Strength map in Y.
The rotation is then linked to the height (y) of each point using the Python node so that when the screws move up they rotate counter clockwise and vice versa when they move down. Most of the below is the basic MASH set up in Python. The line doing the work is:
for i in range(count):
md.outRotation[i].y=md.outPosition[i].y*100
Full script:
import openMASH
#initialise the MASH network data
md = openMASH.MASHData(thisNode)
#this is how to get the frame number
frame = md.getFrame()
#and this gets the number of objects in the network
count = md.count()
#add the index to the Y position
for i in range(count):
md.outRotation[i].y=md.outPosition[i].y*100
#tell MASH to write the network data
md.setData()
You could also fake this using an Offset node (rotation) (using the same Strength map used to affect Y Position) and then just adjust the values to make it look right but hopefully this gives you some inspiration for how powerful the Python node can be.
#builderporn
评论{{comments.total > 0 ? '(' + comments.total +')' : ''}}

{{item.nickname}}

{{dateformat(parseInt(item.created_at), 'YYYY年MM月DD日 HH:mm:ss')}}

回复 赞 {{item.like || ''}}

{{item.content}}

没有更多了~
还没有人发表评论,来第一个发言吧!
广告
本片创作人
你是该片创作者?
我要认领作品
来访用户 看过

更多相关创意作品

...

00'50

...

00'30

...

00'42

...

00'30

...

00'56

...

01'37

...

01'49

...

01'00

...

00'48

...

02'00

...

00'30

...

00'04

...

00'16

...

00'56

...

00'19

...

00'09

...

00'13

...

00'30

...

02'27

...

01'19