C4D might have been 'messed up' based on my prior attempts. I've restarted it and may be making progress.
.del
@.del
I'm a c4d guy that knows enough about c4d to know that I don't know anything about it. I'm a python hack that tries to make productivity tools for my workflow. Most of my solutions don't have proper error catching and are not fit for public consumption. I write them for me and assume the the input is what the script is expecting.
Most of all I appreciate that Maxon has the python sdk and I get a chance to participate in creating things to automate c4d.
Best posts made by .del
-
RE: Calling Bevel tool and setting parametrs
-
RE: Calling Bevel tool and setting parametrs
found it!!! I had to float('0.5')
Latest posts made by .del
-
RE: Python Documentation - Icon Color
Thank you @i_mazlov . I had worked around it by setting it up as a custom color but my preference is to use the display color as I'm already setting that. I'll throw your solution into my project and give it a try.
Do you think this might be changed in the future? If so I want to leave myself a note in the script to revisit the sdk.
Have a great weekend,
.del -
Python Documentation - Icon Color
Hi - How can I set the icon color in the object manager to use the Display Color? The UX has options for None, Display Color, and Custom.
The sdk and VS Code only show values for None and Custom.
I'm not sure if the value was accidentally overlooked or if I'm approaching it incorrectly. I tried taking a stab at c4d.ID_BASELIST_ICON_COLORIZE_MODE_DISPLAYCOLOR but that did not work.
thanks,
.delCinema 4D SDK 2024.2.0 documentation » Classic Resource Overview » Basic Properties
Parameter: Icon Color
Parameter ID: c4d.ID_BASELIST_ICON_COLORIZE_MODE Parameter Type: int Cycle Values: None (c4d.ID_BASELIST_ICON_COLORIZE_MODE_NONE) Custom (c4d.ID_BASELIST_ICON_COLORIZE_MODE_CUSTOM)
-
RE: Python: GetTags() returning non-existent tags
HI @i_mazlov - I have a script that cycles through polygon selection tags on an object and I'm inserting materials tags next to the associated polygon selection tag that it's matched to.
As far as KIllTag() goes, sometimes I have multiple tags of the same type. I don't necessarily want to remove all of them so starting at a specific index to just remove the tag I wanted made sense. I don't mind using Remove(). It's just that KillTag() is right there in the sdk with all of the other tag related things so that's where I started. I also think that the definition of it made me think that it removed a single tag versus all of the tags of that type "Removes a tag from the object and free its resources."
-
RE: Python: GetTags() returning non-existent tags
Do these tags always occupy the same position?
I'm trying things like MakeTag and KillTag that require an indexed position and having two invisible tags is kind of throwing things off. Right now I'm subtracting 2 from the position that I'm targeting but this feels ripe for a script error down the road.
-
RE: Python: GetTags() returning non-existent tags
Thank you. I'll have to remember TAG_VISIBLE for future scripts.
-
Python: GetTags() returning non-existent tags
Why does op.GetTags() return a polygon tag and point tag even if there are not any on the object?
[<c4d.BaseTag object called Phong/Phong with ID 5612 at 1906901951872>, <c4d.PolygonTag object called with ID 5604 at 1906901936256>, <c4d.PointTag object called with ID 5600 at 1906901964288>]
-
RE: Material Tag: Fit to object
Hi @m_adam - In this particular instance I'm calling it on objects that have children and I'm getting the prompt to include sub objects. If it were a modeling command or something like that it may include the ability to include or exclude the children programmatically.
I'm creating 30 objects and each object has six flat projections that I want to set to the size of the object. That's 180 confirmation clicks.
-
Material Tag: Fit to object
Hi - It looks like the only way to to fit a flat projected material tag to an object via python is with a callCommand(). I couldn't find anything in the SDK but that doesn't mean it's not there. Can anybody please confirm that Fit To Object is not available or kindly point me in the right direction in the SDK?
thanks,
.del