Hi Dr. Sassi, thanks for the guidance.
Latest posts made by sweet-boyfriend
-
RE: Script path instead of call command in Python
-
Script path instead of call command in Python
Hi there, I have a question about a few lines of Python code in Cinema 4D. I have a functional script that executes my saved script via a button. However, sometimes the saved script changes the Command ID, causing the button to fail.
Is there a way to specify the Command ID in my script or can someone rewrite it to execute based on the file path instead?
Thank you for any possible solutions.
from typing import Optional import c4d #Python Tags Object placed User Data Button def message(msg_type, data): if msg_type == c4d.MSG_NOTIFY_EVENT: event_data = data['event_data'] if event_data['msg_id'] == c4d.MSG_DESCRIPTION_COMMAND: desc_id = event_data['msg_data']['id'] if desc_id[1].id == 16: c4d.CallCommand(600000014) def Button(): c4d.CallCommand(600000014) def main(): obj = op.GetObject() bc = c4d.BaseContainer() obj.AddEventNotification(op, c4d.NOTIFY_EVENT_MESSAGE, 0, bc)
-
RE: Import to current scene from Watch folder
Understand, thanks for your time Dr. Sassi.
All the best
-
RE: Import to current scene from Watch folder
Hi Dr. Sassi, yes this works fine, but I need the same functionality with the watch folder. I just need to double click or drag and drop a scene from the Watch folder into a current scene (after double clicking or dragging and dropping from the Watch folder, the elements are opened as a new C4D project).
-
Import to current scene from Watch folder
Hi there,
I would like to ask if it is possible to add objects, tags, materials, presets... to the watch folder in the asset browser? The only way is to save it like a C4D file to the watch folder (which works perfectly), but after double clicking on the asset, it opens as a new project. My intention is to import it into the current scene, not open it as a new project.
Is there a workaround for this?
Thanks.