<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Use CallCommand or equivalent by name ?]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 08/02/2011 at 01:56, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Hi there,</p>
<p dir="auto">me again <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f602.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--joy" style="height:23px;width:auto;vertical-align:middle" title=":joy:" alt="😂" /></p>
<p dir="auto">is there any way to Call the buttons, dialogs etc via their name they have in the c4d_symbols.h ?</p>
<p dir="auto">Like IDD_INFOMANAGER,IDP_TEXTURE_SAVE,IDP_PASTEINTO_SELECTION, etc ?</p>
<p dir="auto">Because not every button, function, dialog etc has an ID assigned.</p>
<p dir="auto">But I guess it should be possible to simulate a buttonclick on any button the program offers.</p>
<p dir="auto">Thank you in advance once more</p>
]]></description><link>http://developers.maxon.net/forum/topic/5482/5501_use-callcommand-or-equivalent-by-name-</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 21:36:01 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/5482.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 May 2018 17:50:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Use CallCommand or equivalent by name ? on Wed, 09 May 2018 17:50:37 GMT]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 11/02/2011 at 08:02, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Well, nearly any button <img src="smileys/smiley17.gif" alt="Tongue" class=" img-fluid img-markdown" /></p>
<p dir="auto">Just to know how it works.</p>
<p dir="auto">But let's take the mark missing textures button for example.<br />
The DescID is IDC_TEXTURE_CHECKALLTEX.</p>
<p dir="auto">Do you know a way to access it ?</p>
<p dir="auto">I also tryed to implement the functions of the Button into my Layout via MenuAddCommand, but without any success.</p>
<blockquote>
<p dir="auto">import c4d, os<br />
from c4d import *<br />
from c4d import storage<br />
from c4d.gui import GeDialog</p>
<p dir="auto">BTN_VRAY = {"id": 1028, "name": "CHK_Alle ersetzen", "width": 8, "height": 8}<br />
BTN_Test = {"id": 1029, "name": "Texturpfad ersetzen", "width": 150, "height": 25}<br />
TXT_VRAY = {"id": 1030, "name": "Alle ersetzen", "width": 100, "height": 10, "borderstyle": BORDER_NONE}</p>
<p dir="auto">class MyDialog(GeDialog) :<br />
  def CreateLayout(self) :<br />
      self.SetTitle("MyDialog")</p>
<p dir="auto">self.AddButton(id = BTN_Test["id"],<br />
                          flags=BFH_RIGHT,<br />
                          initw=BTN_Test["width"],<br />
                          inith=BTN_Test["height"],<br />
                          name=BTN_Test["name"])<br />
      if self.MenuAddCommand (c4d.IDM_CM_CLOSEWINDOW) == True:<br />
              print "Done"</p>
<p dir="auto"></p>
<p dir="auto">return True</p>
<p dir="auto">def Command(self,id,msg) :<br />
      if id==BTN_Test["id"]:<br />
          MenuAddCommand (c4d.IDM_CM_CLOSEWINDOW) == True</p>
<p dir="auto">return True</p>
<p dir="auto">dialog = MyDialog()<br />
dialog.Open(dlgtype=DLG_TYPE_MODAL_RESIZEABLE)</p>
</blockquote>
]]></description><link>http://developers.maxon.net/forum/post/25510</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/25510</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Wed, 09 May 2018 17:50:37 GMT</pubDate></item><item><title><![CDATA[Reply to Use CallCommand or equivalent by name ? on Wed, 09 May 2018 17:50:37 GMT]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 11/02/2011 at 05:36, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">CallCommand just accepts BaseList2D objects, dialogs are not accessible. Which button in which dialog do you want to press?</p>
]]></description><link>http://developers.maxon.net/forum/post/25509</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/25509</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Wed, 09 May 2018 17:50:37 GMT</pubDate></item><item><title><![CDATA[Reply to Use CallCommand or equivalent by name ? on Wed, 09 May 2018 17:50:37 GMT]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 10/02/2011 at 03:19, <strong>xxxxxxxx</strong> wrote:</em></p>
<blockquote>
<p dir="auto"><strong>Originally posted by xxxxxxxx</strong></p>
<p dir="auto">I've just been working this stuff out myself these past few weeks, mainly by putting all the wrong types into everything !</p>
</blockquote>
<p dir="auto">So Do I <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f623.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--persevere" style="height:23px;width:auto;vertical-align:middle" title=":persevere:" alt="😣" /></p>
<p dir="auto">As an update, after 2 days trial n error combined with intensive googling there seems to be no way to access those dialogues, or at least if someone found it out he does not reveal the way.</p>
]]></description><link>http://developers.maxon.net/forum/post/25508</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/25508</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Wed, 09 May 2018 17:50:37 GMT</pubDate></item><item><title><![CDATA[Reply to Use CallCommand or equivalent by name ? on Wed, 09 May 2018 17:50:37 GMT]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 09/02/2011 at 05:38, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">No blame intended, I've just been working this stuff out myself these past few weeks, mainly by putting all the wrong types into everything !<br />
I'm not sure how to access the manager dialogues but if I think of anything I work it out, I'll be sure to post.</p>
]]></description><link>http://developers.maxon.net/forum/post/25507</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/25507</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Wed, 09 May 2018 17:50:37 GMT</pubDate></item><item><title><![CDATA[Reply to Use CallCommand or equivalent by name ? on Wed, 09 May 2018 17:50:36 GMT]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 09/02/2011 at 03:56, <strong>xxxxxxxx</strong> wrote:</em></p>
<blockquote>
<p dir="auto"><strong>Originally posted by xxxxxxxx</strong></p>
<p dir="auto">These IDs <em>are</em> integers</p>
</blockquote>
<p dir="auto">You are so right, blame it on me</p>
<p dir="auto">maybe you have an idea to access the buttons in the dialogues as well ?</p>
<p dir="auto">Thanks for sharing your knowledge</p>
]]></description><link>http://developers.maxon.net/forum/post/25506</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/25506</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Wed, 09 May 2018 17:50:36 GMT</pubDate></item><item><title><![CDATA[Reply to Use CallCommand or equivalent by name ? on Wed, 09 May 2018 17:50:36 GMT]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 09/02/2011 at 02:42, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">These IDs <em>are</em> integers, like when you write:</p>
<p dir="auto">obj = c4d.BaseObject(c4d.Ocube)</p>
<p dir="auto">the c4d.Ocube part is the same as integer 5159, so the code means the same as this :</p>
<p dir="auto">obj = c4d.BaseObject(5159)</p>
<p dir="auto">The IDs are just to make your code more readable and in case you don't know the number.</p>
<p dir="auto">You can find out the number like this :</p>
<p dir="auto">id = obj.GetType()<br />
print id</p>
]]></description><link>http://developers.maxon.net/forum/post/25505</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/25505</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Wed, 09 May 2018 17:50:36 GMT</pubDate></item><item><title><![CDATA[Reply to Use CallCommand or equivalent by name ? on Wed, 09 May 2018 17:50:36 GMT]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 09/02/2011 at 01:08, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Alright, thanks for that.</p>
<p dir="auto">I'll give it a try, although I do not think it will work because according to the documentation an integer is required.</p>
<p dir="auto">But heja the proof of the pudding is in the heating.</p>
<p dir="auto">edit:</p>
<blockquote>
<p dir="auto">import c4d<br />
from c4d import *</p>
<p dir="auto">obj = doc.GetFirstObject()</p>
<p dir="auto">def button_simulate(obj) :<br />
 c4d.CallButton(obj,c4d.SELECTIONOBJECT_RESTORE)<br />
 c4d.EventAdd()</p>
<p dir="auto">button_simulate(obj)</p>
</blockquote>
<p dir="auto">I found the DescID via searching in the c4d_stings.str</p>
<p dir="auto">Gr8 that's already one step forward <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44f.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--clap" style="height:23px;width:auto;vertical-align:middle" title=":clap:" alt="👏" /></p>
<p dir="auto">so far, so good and now there is the big but:<br />
is there any chance to load dialogues instead of objects to perform a CallButton ?</p>
<p dir="auto">Because I'm still interested in the texturemanagertab in the infomanager.<br />
Especially accessing the list of textures <img src="smileys/smiley17.gif" alt="Tongue" class=" img-fluid img-markdown" /></p>
]]></description><link>http://developers.maxon.net/forum/post/25504</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/25504</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Wed, 09 May 2018 17:50:36 GMT</pubDate></item><item><title><![CDATA[Reply to Use CallCommand or equivalent by name ? on Wed, 09 May 2018 17:50:36 GMT]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 08/02/2011 at 07:17, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Check out c4d.CallButton() in the main module. I think you have to add c4d. before the button name id. You also supply the object the button is on, like :</p>
<p dir="auto">c4d.CallButton(obj, c4d.IDP_TEXTURE_SAVE)</p>
]]></description><link>http://developers.maxon.net/forum/post/25503</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/25503</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Wed, 09 May 2018 17:50:36 GMT</pubDate></item></channel></rss>