DrawLine2D
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/11/2011 at 04:29, xxxxxxxx wrote:
When using DrawLine2D the lines disappear behind geometry. Is there a way or another function to draw lines in screen space without this clipping?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/11/2011 at 06:05, xxxxxxxx wrote:
Hi,
I think this post is related: https://developers.maxon.net/forum/topic/5751/5798_drawpoint2d-clipped-in-opengl (DrawPoint2D() Clipped in OpenGL).
You can first change by hand the near view clipping in the project settings. And to edit the clipping settings by code: https://developers.maxon.net/forum/topic/5751/5798_drawpoint2d-clipped-in-opengl&PID=24321#24321.
Regards,
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/11/2011 at 09:10, xxxxxxxx wrote:
You may want to check out the PyDrawHelper plugin.
Cheers, Niklas.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2011 at 03:39, xxxxxxxx wrote:
I don't think its about the clipping planes. I also tried to change the clipping planes, but as expected it didn't work. This is because I don't think the Lines are affected at all by the clipping planes. And also they shouldn't be.
I just want to draw a Rectangle consisting of 4 Lines in the viewport, which is always on top of geometry etc. Like the Title Safe and Action Safe.
PyDrawHelper unfortunately won't be a possibility if it's unstable like you said. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2011 at 06:58, xxxxxxxx wrote:
Hi,
This can be a driver issue.
Could you try running this plugin ?import c4d from c4d import plugins #Temp ID, only use it for development and debug purposes! PLUGIN_ID = 1000001 class TestToolData(plugins.ToolData) : def Draw(self, doc, data, bd, bh, bt, flags) : # Set color for draw operations bd.SetPen(c4d.Vector(1, 1, 1)) renderFrame = bd.GetSafeFrame() # Draw safe frame rectange lines bd.DrawLine2D(c4d.Vector(renderFrame['cl'], renderFrame['ct'], 0), c4d.Vector(renderFrame['cr'], renderFrame['ct'], 0)) bd.DrawLine2D(c4d.Vector(renderFrame['cr'], renderFrame['ct'], 0), c4d.Vector(renderFrame['cr'], renderFrame['cb'], 0)) bd.DrawLine2D(c4d.Vector(renderFrame['cr'], renderFrame['cb'], 0), c4d.Vector(renderFrame['cl'], renderFrame['cb'], 0)) bd.DrawLine2D(c4d.Vector(renderFrame['cl'], renderFrame['cb'], 0), c4d.Vector(renderFrame['cl'], renderFrame['ct'], 0)) # Draw safe frame cross lines bd.DrawLine2D(c4d.Vector(renderFrame['cl'], renderFrame['ct'], 0), c4d.Vector(renderFrame['cr'], renderFrame['cb'], 0)) bd.DrawLine2D(c4d.Vector(renderFrame['cr'], renderFrame['ct'], 0), c4d.Vector(renderFrame['cl'], renderFrame['cb'], 0)) return c4d.TOOLDRAW_HANDLES|c4d.TOOLDRAW_AXIS if __name__ == "__main__": plugins.RegisterToolPlugin(id=PLUGIN_ID, str="TestToolData", info=0, icon=None, help="", dat=TestToolData())
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2011 at 07:02, xxxxxxxx wrote:
PyDrawHelper unfortunately won't be a possibility if it's unstable like you said.
Well, you shouldn't have unsaved projects open in Cinema 4D, even it doesn't crash often (Unfortunately I don't know the reason for it).
But if you want to create some drawing in the Editor, do you really want to restart Cinema 4D everytime ? It's just like a PyGenerator object, but it allows you to create drawings in the Editor. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2011 at 12:53, xxxxxxxx wrote:
(Unfortunately I don't know the reason for it).
Feel free to send bugreports if c4d crashs. If there is also a way to reproduce that, please provide any useful information in the description. Cheers, Sebastian