トップページ > CG > 2021年06月15日 > lyHP3VxV

書き込み順位&時間帯一覧

4 位/161 ID中時間01234567891011121314151617181920212223Total
書き込み数1000000000001000011000004



使用した名前一覧書き込んだスレッド一覧
名無しさん@お腹いっぱい。
【Modo】 Part44

書き込みレス一覧

【Modo】 Part44
603 :名無しさん@お腹いっぱい。[sage]:2021/06/15(火) 00:15:59.45 ID:lyHP3VxV
http://pushingpoints.com/v2/modo-the-pushing-points-nifty-collection/
【Modo】 Part44
605 :名無しさん@お腹いっぱい。[sage]:2021/06/15(火) 12:51:32.78 ID:lyHP3VxV
CharacterBox等強力なプラグインもIndie対応すれば良かったのに
【Modo】 Part44
606 :名無しさん@お腹いっぱい。[sage]:2021/06/15(火) 17:02:31.30 ID:lyHP3VxV
カメラビューでカメラを動かしながらカメラの位置にスポットライト追加するスクリプトを
組んでみたのですが、回転がうまくいってないです。どうすればよいでしょうか?
#python
import sys
import lx
import modo
lx.eval('select.typeFrom item;pivot;center;edge;polygon;vertex;ptag false')
m = lx.eval('select.itemType camera')
Xpos=lx.eval('transform.channel pos.X ?')
Ypos=lx.eval('transform.channel pos.Y ?')
Zpos=lx.eval('transform.channel pos.Z ?')
Xrot=lx.eval('transform.channel rot.X ?')
Yrot=lx.eval('transform.channel rot.Y ?')
Zrot=lx.eval('transform.channel rot.Z ?')
lx.eval('item.create spotLight mask:light')
lx.eval('transform.channel pos.X %s' %Xpos)
lx.eval('transform.channel pos.Y %s' %Ypos)
lx.eval('transform.channel pos.Z %s' %Zpos)
lx.eval('transform.channel rot.X %s' %Xrot)
lx.eval('transform.channel rot.Y %s' %Yrot)
lx.eval('transform.channel rot.Z %s' %Zrot)
【Modo】 Part44
607 :名無しさん@お腹いっぱい。[sage]:2021/06/15(火) 18:03:21.70 ID:lyHP3VxV
できた。スレ汚しごめん。
#python
import sys
import lx
import modo
lx.eval('select.typeFrom item;pivot;center;edge;polygon;vertex;ptag false')
c = lx.eval('select.itemType camera')
Xpos=lx.eval('transform.channel pos.X ?')
Ypos=lx.eval('transform.channel pos.Y ?')
Zpos=lx.eval('transform.channel pos.Z ?')
c = lx.eval('query sceneservice selection ? camera')
Rot = lx.eval('query sceneservice item.Rot ? %s' % c) #Queries the current item Rotation XYZ value
Xrot = ((Rot[0] *180) /3.14)
Yrot = ((Rot[1] *180) /3.14)
Zrot = ((Rot[2] *180) /3.14)
lx.eval('item.create spotLight mask:light')
lx.eval('transform.channel pos.X %s' %Xpos)
lx.eval('transform.channel pos.Y %s' %Ypos)
lx.eval('transform.channel pos.Z %s' %Zpos)
lx.eval('transform.channel rot.X %s' %Xrot)
lx.eval('transform.channel rot.Y %s' %Yrot)
lx.eval('transform.channel rot.Z %s' %Zrot)
lx.eval('item.channel light$radiance 100.0')


※このページは、『2ちゃんねる』の書き込みを基に自動生成したものです。オリジナルはリンク先の2ちゃんねるの書き込みです。
※このサイトでオリジナルの書き込みについては対応できません。
※何か問題のある場合はメールをしてください。対応します。