秒表示の移動アニメ 途中 20240408 blender

 

 

 

 

途中まで

 

# メイン関数
def main():
    global text_object, plane_object
    # 以前のオブジェクトを削除
    delete_objects()

https://chat.openai.com/share/7de81e3f-8735-4dd8-a23f-5d47308d1f99

 

修正 色付け は まだの状態

https://chat.openai.com/share/8332b883-2a2b-45a3-9a25-a85210913640

 

 

 

 

秒文字の 16進数 色付け 成功

https://chat.openai.com/share/bd992dc4-8f68-4a47-a5b2-f0bdb8bad0b0

 

 

 



選択中

テキスト オブジェクトだけの

位置指定変更

https://chat.openai.com/share/d67d1ee5-d32a-4aa6-afb1-a0d3bb8d3f31

 

 

 

立方体 アニメ設定 追随型

テキスト表示 z=-1.01

https://chat.openai.com/share/e4078e0b-7efa-483c-a8f2-6603b422d186

 

 

秒表示部分 追加スクリプト

https://chat.openai.com/share/4639a4b4-ada7-4a12-a257-e5b23d0f408b

 

 

 



 

オフセット+1.1 と -1.1

https://chat.openai.com/share/f4b07204-3186-4587-808d-dea78765ba23

 

 

 

 

 

 

オリジナル 作成の アカウント

https://chat.openai.com/c/75d68c68-9085-410b-80e3-51171aa95586

ここで 更新したので 途中までのは リンク切れたかも?

 

コピー保存リンク

https://chat.openai.com/c/75d68c68-9085-410b-80e3-51171aa95586

 

正方形 平面オブジェクト中心で

y軸を回転軸にして 90度回転させたもの

オフセット1.1

 

 

 

 

さらに y軸回転後 x軸回転

https://chat.openai.com/c/75d68c68-9085-410b-80e3-51171aa95586

更新したオリジナル アカウント

 

 

 

 

 

 

移動しない? blue 時計表示 zx平面

https://chat.openai.com/share/68635343-fc8f-4d72-9099-c2e96d8ebecf

こっちは精選した コピペアカウント

 

 

 

User
秒表示が ちゃんと1秒毎に 更新されるのだが 保存したファイルから実行すると 秒表示が更新されない どこが問題?
ChatGPT
問題の原因は、保存したファイルを実行した場合、bpy.app.timers.register(update_text) が正しく実行されていないことです。これは、Blenderファイルを保存して再度開いた場合、登録したタイマーがリセットされるためです。

この問題を解決するために、スクリプトがファイルを実行するときに、update_text 関数が自動的に呼び出されるようにする必要があります。

以下は、修正されたスクリプトです。

 

 

   # テキストオブジェクトを正方形オブジェクトの中心で90度回転
    text_object.rotation_euler = (math.radians(90), 0, math.radians(90))
    additional_text_object.rotation_euler = (math.radians(90), 0, math.radians(90))
    

 

   # テキストオブジェクトを正方形オブジェクトの中心で90度回転
    text_object.rotation_euler = (math.radians(90), 0, math.radians(180))
    additional_text_object.rotation_euler = (math.radians(90), 0, math.radians(180))
    

    # テキストオブジェクトを正方形オブジェクトの中心で90度回転
    text_object.rotation_euler = (math.radians(0), math.radians(-90), math.radians(0))
    additional_text_object.rotation_euler = (math.radians(0), math.radians(-90), math.radians(0)) 

 

 

https://infinity-agent.co.jp/lab/post-11547/

eb407a

ピンク紫 xz平面 正面 ーyから+y方向

# テキストオブジェクトの回転角度(度数法)
x_rotation = 90
y_rotation = 0
z_rotation = 0

 

 

 

 

# テキストオブジェクトの回転角度(度数法)
x_rotation = 90
y_rotation = 0
z_rotation = 90

# 秒表示のテキストの色(16進数の濃いオレンジ:#FFA500)
TEXT_COLOR_HEX = "00bed5"

 

 

 

 

 

 

Text Editor の 表示ボタンが 消えた問題 記録  20240408 blender

 

左下の操作画面

 

その操作ボタンが 表示されていない

 

 

 

時刻表示を 毎秒 取得する際の問題発生らしい

 


Blenderテキストエディターに表示ボタンが消える問題は、bpy.types.TEXT_HT_header.draw を上書きしてしまうことが原因です。UIを追加する際に、既存のUIを保持したまま追加する方法を使用することで、この問題を解消できます。

https://chat.openai.com/share/1d1bc03a-76d6-449c-8bb5-32d478a2c686

 

ChatGPT に 問い合わせた

 

 

このスクリプト

問題は 解消されたようだ

 

 

 

 

Blender 再起動で 操作ボタンは 表示される

 

時刻を取得して表示する python 20240408 blender

時刻を取得して表示する python 20240408 blender

 

 

 

https://chat.openai.com/share/bf833387-3497-41db-9918-6f2c4269915f

ChatGPT3.5 で コードをコピーできる

 

 

 

 

 

 

https://chat.openai.com/share/98b876ac-71a5-45d7-ac1b-4d59d28e2bc6

1秒毎に 

時刻表示が 自動更新するように改造

 

 

 

 

 

 

トーラスと立方体の移動アニメ

 

これを重ねて再生しても

時刻表示のテキスト 1秒毎 更新で

 

消えなかった

干渉しなかった

 

 

 

 



 

 

 

 

https://chat.openai.com/share/c80d0e64-e5c6-4b28-aef2-72d5b39f0723

トーラス 順方向

 

左から 右へ 

右から左へ 動いて

 

2秒停止後 ループ

 

https://chat.openai.com/share/a3278109-f27a-4718-9566-00f44945b615

トーラス 逆方向

 

 

 

https://chat.openai.com/share/0b71abaf-216d-4478-97f5-0fcf377dbd75

立方体 順方向

 

https://chat.openai.com/share/132bea1f-d174-4bce-b0de-7e18965900fa

立方体 逆方向

 

 

 

python スクリプト 

なんたら.py  

 

blender 

導入方法は 以下を 参考にしてくれ

下書き blog ページの 後半 終わりに

 

書き出してある 

 

下書き Dürer & 測距儀2022d196 解答編 f037 分析道具32: 四面体の底面 : zionad2023のblog

 

 

 

 

 

 

 

 

 

 

 

特殊相対性理論が トンデモだったの お話

togetter.com

 

 

 

2022zionad.hatenablog.com

 

 

https://twitter.com/zionadchat

 

BlueSky で twitter 予備環境  
https://bsky.app/profile/zionadchat.bsky.social

ツイッター X  障害 仕様変更 多いので
gettr に連絡 アドレス

https://gettr.com/user/zionadchat

 

blender 操作ボタン は どこだろう 2024 - 2022 単純トリック hatena zionadchat

 

 

初期設定に 戻す 20240407 blender

 



 

モニター画面

左上

 

Fileを選択

 

 

 

 

Defaults 選択

 

 



 

 

 

Load Factory Settings 選択

 

 



 

初期設定に戻った

 

 

 

 

3D Viewport 背景色1つの 設定 20240407 blender - million2024のブログ

 

 

 

 

 

特殊相対性理論が トンデモだったの お話

togetter.com

 

 

 

2022zionad.hatenablog.com

 

 

https://twitter.com/zionadchat

 

BlueSky で twitter 予備環境  
https://bsky.app/profile/zionadchat.bsky.social

ツイッター X  障害 仕様変更 多いので
gettr に連絡 アドレス

https://gettr.com/user/zionadchat

 

 

blender 操作ボタン は どこだろう 2024 - 2022 単純トリック hatena zionadchat

3D Viewport  背景色1つの 設定 20240407 blender

 

 

 

 

 

 

 

明るさや

 

赤さ

Green さ

青さ

 

変更できる

 

背景色は 1から7の番号で選択

 

 

 

 

 

 

2色目の背景色を 手動で設定すると こうなる

 

 

 

 

 

 

 

 

 

 

手動で 色設定

 

 

 

 

 

 

 

 

3D Viewport  背景色 2つ目の 設定

 

 

 

 

 

 

 

Edit の 画面内 位置確認

 

 



次に Preferences の 位置確認

 

 

Edit

Preferences

Themes

 

で 操作画面が 出てくるので

 

 

3D Viewport  選択

 

 

 

スクロール ずっと下に続けて

 

 

 

 

Theme Space 選択

 

 

 

Theme Space 選択で

Gradient Colors 開く

 

 

 

 

 

この Gradient High/Off だけ 色設定 自動で可能

 

 

 

Gradient Low の色は 

 

手動設定でしか できないようだ 現在20240407 

 

 

 

ChatGPT3.5

https://chat.openai.com/share/e5844f1d-37e1-4996-9ad1-bf1cab2e8c32

 

python スクリプトが コピーできる

 

 

 

 

 

 

 

 

カラーピッカーで 数値取得し

 

 

 

 

 

 

 

全部 16進数での 色表示のも

 

作りました

 

https://chat.openai.com/share/cc735f22-12f0-4051-a0e6-8ede7d1f98ea

 

ChatGPT3.5 から コードをコピーできます

 

 

 

 

 

 

 



16進数のカラーコード入力

 

 

 

 

#選択した背景色

selected_color ="10"  

 

この数値で 色替え してください

 

 

カラーピッカー

shift + Windows ボタン + c

 

Text Extractor

shift + WIndows ボタン + t

 

ChatGPTに 

python スクリプト エラー時の

画面文字 コピペして ペーストで問い合わせに使用する

 

Microsoft Power Toys - Google 検索

 

 

 

 

 

 

 

 

 

Windows】カラーピッカーで画面に表示されている色のカラーコードを調べる【Mac

mik2062.jp

 

https://mik2062.jp/color-picker/

 

 

 

 

million2024.hatenablog.com

 

 

 

 

カラーコード - Google 検索

 

 

www.colordic.org

 

 

www.netyasun.com

 

 

www.oikawa-sekkei.com

 

 

 

million2024.hatenablog.com

 

 

初期設定に 戻す 20240407 blender - million2024のブログ

 

 

 

 

特殊相対性理論が トンデモだったの お話

togetter.com

 

 

 

2022zionad.hatenablog.com

 

 

https://twitter.com/zionadchat

 

BlueSky で twitter 予備環境  
https://bsky.app/profile/zionadchat.bsky.social

ツイッター X  障害 仕様変更 多いので
gettr に連絡 アドレス

https://gettr.com/user/zionadchat

 

blender 操作ボタン は どこだろう 2024 - 2022 単純トリック hatena zionadchat

 

Edit

Preferences

Themes

3D Viewport  選択

Theme Space

Gradient Colors

 

 

 

 

トーラスと立方体の すれ違い

 

 

 

https://chat.openai.com/share/9a6fbfb8-f34a-4b37-996a-0044e2a58f4c

 

 

 

 

トーラスと立方体の_すれ違い_001.py - Google ドライブ

https://drive.google.com/file/d/1-A5DEyRfMGSGV9pcURWLj1OMB8yCbnnh/view?usp=drive_link