<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Perforce version control functions in Maxscript in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070068#M24768</link>
    <description>There is one more site that is good and I also have visited it,this has provided me such information that is really unique and the service that they offer also I have experienced, really I enjoy this service so I want to make an appeal to others please visit this and I want to tell you that after experiencing this service &lt;A href="http://www.mcse-classes.com" target="_blank"&gt;mcse questions&lt;/A&gt; you’ll enjoy it again and again.</description>
    <pubDate>Tue, 02 Feb 2010 05:09:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-02-02T05:09:07Z</dc:date>
    <item>
      <title>Perforce version control functions in Maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070058#M24758</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm running into a snag when I attempt to determine if a file is under version control. I'm using hiddenDosCommand with P4 command lines and redirecting output to a temp file which I then read. This works for a few files, but when I need to go through a slew of them, the disk writing can get extremely slow. Does anyone have any experience or suggestions to avoid having to write to disk?&lt;BR /&gt;&lt;BR /&gt;I've installed the graphical tool plug-in from P4, but as far as I can tell, nothing is exposed to maxscript.&lt;BR /&gt;&lt;BR /&gt;Any hints or help would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;CL Audio&lt;BR /&gt;3dsMax 2009 sp1 32-bit ( +creativity extension )</description>
      <pubDate>Mon, 23 Mar 2009 22:59:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070058#M24758</guid>
      <dc:creator>ClaudioAlvaro</dc:creator>
      <dc:date>2009-03-23T22:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Perforce version control functions in Maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070059#M24759</link>
      <description>I wrote a maxscript extension using the p4 api. It was fairly simple and virtually gave me access to every p4 command with output in maxscript string. Unfortunately I cannot share that with you but if you know a bit of the 3dsmax sdk, it should take few hours.</description>
      <pubDate>Tue, 24 Mar 2009 06:55:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070059#M24759</guid>
      <dc:creator>gplourde</dc:creator>
      <dc:date>2009-03-24T06:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Perforce version control functions in Maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070060#M24760</link>
      <description>I used &amp;lt;a href="&lt;A href="http://p4dotnet.sourceforge.net/index.php/P4.Net_Overview&amp;quot;&amp;gt;P4.NET&amp;lt;/a&amp;gt;;" target="_blank"&gt;http://p4dotnet.sourceforge.net/index.php/P4.Net_Overview"&amp;gt;P4.NET&amp;lt;/a&amp;gt;;&lt;/A&gt; with that assembly, it was fairly easy to do everything else from MAXScript.</description>
      <pubDate>Wed, 25 Mar 2009 00:32:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070060#M24760</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-25T00:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Perforce version control functions in Maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070061#M24761</link>
      <description>Thanks for the info. I'll check out P4.Net.</description>
      <pubDate>Wed, 25 Mar 2009 12:31:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070061#M24761</guid>
      <dc:creator>ClaudioAlvaro</dc:creator>
      <dc:date>2009-03-25T12:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Perforce version control functions in Maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070062#M24762</link>
      <description>I can get as far as generating a connection with p4Net, and I think I'm connecting to the perforce depot, but I only get errors with anything I try to do. I have really little dotNet experience which doesn't help...&lt;BR /&gt;&lt;BR /&gt;Any help or sample code would help here.&lt;BR /&gt;&lt;BR /&gt;&amp;amp;#40;Once I get to the office I'll post what I've got so far&amp;amp;#41;.</description>
      <pubDate>Sat, 06 Jun 2009 19:49:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070062#M24762</guid>
      <dc:creator>ClaudioAlvaro</dc:creator>
      <dc:date>2009-06-06T19:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Perforce version control functions in Maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070063#M24763</link>
      <description>Hello,&lt;BR /&gt;I have recently encountered recent issues while in the process of fin tuning our pipeline. and the information in this thread has been instrumental. The key to the dotnet p4 usage is in the "run" command where most p4 commands can be called as well as passed information. The help file that comes with the p4.net assembly is quite useful.&lt;BR /&gt;&lt;BR /&gt;As I get  deeper into the p4 docs I am finding cleaner and more efficient ways of implementing various functionality in the scripts. While I have found a good number of solutions that work fairly well. I would be interested in seeing some script snippets for different ideas and ways of using these function in script. &lt;BR /&gt;&lt;BR /&gt;While I can not post the bulk of what I am doing I will try to put together some general examples on here that could help others as well as feed the ideas exchanges.</description>
      <pubDate>Tue, 23 Jun 2009 01:15:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070063#M24763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-23T01:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Perforce version control functions in Maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070064#M24764</link>
      <description>I gave up entirely on this due to lack of time. Here's what I have and where it burps. I'm probably setting this up wrong, any help would be helpful.&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;dotnet.loadAssembly "C:\\dotNet\\P4.Net\\bin\\CLR_1.1\\p4api.dll"&lt;BR /&gt;p4 = dotNetObject "p4api.p4Connection"&lt;BR /&gt;p4.connect&amp;amp;#40;&amp;amp;#41;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;And here's the reported error&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;-- Runtime error: dotNet runtime exception: Could not load file or assembly 'p4dn, Version=1.0.0.0, &lt;BR /&gt;Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;When I attempt loading the p4dn.dll file through the dotnet.loadAssembly method I get the following&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;-- Error occurred in anonymous codeblock; filename: C:\p4dotNet.ms; position: 145; line: 2&lt;BR /&gt;-- Runtime error: dotNet runtime exception: Invalid directory on URL.&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;I have no clue what I'm doing here so any help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Testing in 2009 32bit and 2010 64bit.&lt;BR /&gt;&lt;BR /&gt;CL Audio</description>
      <pubDate>Mon, 25 Jan 2010 19:01:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070064#M24764</guid>
      <dc:creator>ClaudioAlvaro</dc:creator>
      <dc:date>2010-01-25T19:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Perforce version control functions in Maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070065#M24765</link>
      <description>Turns out p4.net doesn't work in 64bit.</description>
      <pubDate>Sat, 30 Jan 2010 05:24:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070065#M24765</guid>
      <dc:creator>ClaudioAlvaro</dc:creator>
      <dc:date>2010-01-30T05:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Perforce version control functions in Maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070066#M24766</link>
      <description>This depends on whether you're using P4V or P4Win.  When we had P4Win, I was able to simply connect to p4 using this: DOSCommand &amp;amp;#40;"p4 edit \""+anim+"\""&amp;amp;#41;&lt;BR /&gt;&lt;BR /&gt;Supposedly, p4v comes with a commandline version, also called p4, but damned if I can open it.  I need to keep trying, though.  If I get it to work with p4v, I'll let you know.&lt;BR /&gt;&lt;BR /&gt;Alec</description>
      <pubDate>Tue, 02 Feb 2010 02:11:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070066#M24766</guid>
      <dc:creator>alecf</dc:creator>
      <dc:date>2010-02-02T02:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Perforce version control functions in Maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070067#M24767</link>
      <description>What we currently do is redirect the output of the p4 command to a text file, and then parse it. This is fine if you need to simply check out a file or a diff, but if you need to compare local files to those on a depot &amp;amp;#40;in the hundreds&amp;amp;#41;, parsing a text file is not the best approach.&lt;BR /&gt;&lt;BR /&gt;P4.Net uses data forms to parse output. Unfortunately we're moving to 64bit windows and 3dsMax 2010, so that eliminates p4.Net as a potential solution.</description>
      <pubDate>Tue, 02 Feb 2010 04:26:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070067#M24767</guid>
      <dc:creator>ClaudioAlvaro</dc:creator>
      <dc:date>2010-02-02T04:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Perforce version control functions in Maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070068#M24768</link>
      <description>There is one more site that is good and I also have visited it,this has provided me such information that is really unique and the service that they offer also I have experienced, really I enjoy this service so I want to make an appeal to others please visit this and I want to tell you that after experiencing this service &lt;A href="http://www.mcse-classes.com" target="_blank"&gt;mcse questions&lt;/A&gt; you’ll enjoy it again and again.</description>
      <pubDate>Tue, 02 Feb 2010 05:09:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070068#M24768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-02T05:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Perforce version control functions in Maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070069#M24769</link>
      <description>OK, got it working again via P4 command line.  If you go here:&lt;BR /&gt;&lt;A href="http://perforce.com/perforce/downloads/index.html" target="_blank"&gt;http://perforce.com/perforce/downloads/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can download Perforce Command-Line Client, which will allow you to call the full complement of perforce commands.  Make sure when it's setting up that you disable the install of the perforce server, which is on by default.  Just install the Command-Line Client.  Then, from the DOS prompt, you can check to make sure your environment variables are set properly by typing "p4 set".  That will list any of the known perforce environment variables that are already set.  Mine didn't have the P4CLIENT environment variable set up, so it ended up choosing the wrong workspace.  P4CLIENT defines the workspace, so if you need to set that up, just type  &amp;amp;#40;no brackets&amp;amp;#41; and you should be good to go.&lt;BR /&gt;Once installed, you can call any of the commands on this page using MaxScripts DOSCommand:&lt;BR /&gt;&lt;A href="http://perforce.com/perforce/doc.current/manuals/cmdref/index.html" target="_blank"&gt;http://perforce.com/perforce/doc.current/manuals/cmdref/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that helps.  Let me know if you have any setup questions and I'll try to help.&lt;BR /&gt;&lt;BR /&gt;Alec</description>
      <pubDate>Fri, 05 Feb 2010 01:52:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070069#M24769</guid>
      <dc:creator>alecf</dc:creator>
      <dc:date>2010-02-05T01:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Perforce version control functions in Maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070070#M24770</link>
      <description>One warning with command line, especially when doing batch operations. You will want to include a few fail-safes in your scripts. To check if the commanded action was actually carried out. In some cases, I found that sending the command two consecutive times solved many problems. In other cases I simply checked if the giving command had been cared out. If that check comes up false then send the command again.&lt;BR /&gt;&lt;BR /&gt;One example:&lt;BR /&gt;• Max script tells p4 to check a file out. NOTE: Read only flag should be set to false&lt;BR /&gt;• Then have max script check the read only flag in the file. It it is still true, there is a good chance the check out command failed. Then send the command line again.&lt;BR /&gt;&lt;BR /&gt;Another way to confirm success is printing the command line output to a text file then read in the text file. I keep this in reserve for specific operations where I really need the information. This option is slow from a run-time efficiency stand point.&lt;BR /&gt;&lt;BR /&gt;A nice way to hide this from the end user is the hidden dos command.&lt;BR /&gt;&lt;BR /&gt;For debugging purposes, both mind and the end users. I tend to print activity logs to the listener.</description>
      <pubDate>Fri, 05 Feb 2010 02:44:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070070#M24770</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-05T02:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Perforce version control functions in Maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070071#M24771</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Supposedly, p4v comes with a commandline version, also called p4, but damned if I can open it.  I need to keep trying, though.  If I get it to work with p4v, I'll let you know.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;The P4v installer has a habit of moving the p4.exe command-line file and failing to update the system path to match.  The fix is to just run the P4v installer a second time.</description>
      <pubDate>Fri, 12 Feb 2010 12:55:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070071#M24771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-12T12:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Perforce version control functions in Maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070072#M24772</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;For debugging purposes, both mind and the end users. I tend to print activity logs to the listener.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;can you please share a simple example of how to get console output to listener?&lt;BR /&gt;in my case, i am attempting to connect my max with svn. svn client works fine from cmd prompt. all i wanted currently is to get output to listener.&lt;BR /&gt;&lt;BR /&gt;another problem in my mind is, how exactly to know, hidden dos command has finished.&lt;BR /&gt;my psudo solution is like&lt;BR /&gt;1- start timer before hidden dos command and create empty log file. see its time stamp&lt;BR /&gt;2- check timer after few steps and see, file modification and read log from there etc&lt;BR /&gt;&lt;BR /&gt;is this ideal way.??thanks in advance for time to read and sharing knowledge..</description>
      <pubDate>Sun, 17 Jun 2012 18:28:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/perforce-version-control-functions-in-maxscript/m-p/4070072#M24772</guid>
      <dc:creator>lalamax3d</dc:creator>
      <dc:date>2012-06-17T18:28:48Z</dc:date>
    </item>
  </channel>
</rss>

