Thank you.. It's Solved.
@fwilleke80 @ferdinand and @kbar
def PluginMessage(_id, data):
if _id == c4d.C4DPL_PROGRAM_STARTED:
Thank you.. It's Solved.
@fwilleke80 @ferdinand and @kbar
def PluginMessage(_id, data):
if _id == c4d.C4DPL_PROGRAM_STARTED:
@ferdinand
Thank you for your kind explanation. I will explore other options.
Hello Hi Dear....
In a Python Tag plugin, is it possible to disable (ghost) the host object's parameters? GetDEnabling only allowed disabling the tag's own options.
Is there a way to do this?
ex) the tag disables some options of the Bend object.
def GetDEnabling(self, node, id, t_data, flags, itemdesc) :
#disable --> DEFORMOBJECT_ALIGNMENT DEFORMOBJECT_FITTOPARENT DEFORMOBJECT_MODE
def Execute(self, op, doc, host, bt, priority, flags):
doc = c4d.documents.GetActiveDocument()
bend = op.GetObject()
Thank You....
Thanks, I'll test Dirty on selection.
Can Python tag detect when an object's edge selection is being added or modified?
So far, this is the only thing I've discovered: The detection only responds when a component is added or deleted.
import c4d
def main():
pass
def message(mid, data):
if mid == c4d.MSG_POLYGONS_CHANGED:
print(f"somthing is happening: {mid}")
return True
@ferdinand, Is it possible to VertexColor, WeightMap(character rig) in the same way?
Some games use VertexColor, so marking can always be useful.
I tried to convert your code to VertexColor, but I lack knowledge. Please help us.
Added one more for... zip to remove the invisible points.
@i_mazlov said in hud depth buffer?:
As a workaround you might consider only drawing HUDs for those points that are exposed to the editor camera.
Thanks for your answer. The code above is my limit.
would you give me a hint? thank you.
@i_mazlov
Here is code. Thank You.
def draw(bd: c4d.BaseDraw) -> bool:
obj=op.GetObject()
points = obj.GetAllPoints()
objMg = obj.GetMg()
newpointpos = []
for o in points:
newmg = objMg * o
newpointpos.append(newmg)
scrpos = []
for p in points:
newpos = bd.WS(p)
scrpos.append(newpos)
textval = []
for i, pos in enumerate(zip(newpointpos, scrpos)):
data = {"_txt":str(i), "_position":pos[1]}
textval.append(data)
bd.SetDepth(False)
bd.DrawMultipleHUDText(textval)
bd.SetDepth(True)
return True
What is the correct code "HUD depth buffer" in R19 and R2023?
As shown, in R2023 the HUD is not obscured by objects. (R19 is inverted)
Thank You.
bd.SetDepth(False)
bd.DrawMultipleHUDText(data)
bd.SetDepth(True)