[Sidefx-houdini-list] Editng Python in a Digital Asset

Georg Duemlein rdg at preset.de
Wed Jan 19 19:17:05 EST 2011

I can't agree with Andrew's statement as this usually just ends up in big
Unless you have versioned python modules/scripts even tiny changes in the
imported python modules will cause behaviour changes in lot's of otls or
otl versions.

The python editorin digital assets could use some love, I agree.

On Wed, 19 Jan 2011 14:49:04 -0800, Graham Thompson
<captainhammy at gmail.com> wrote:
> Personally I just deal with it if my code isn't terribly complex or
> long but it definitely does get annoying with longer blocks of code.
> I will sometimes do what you mention about saving the section out,
> however I do it a bit differently.  I'll save my PythonModule section
> to a disk file then I delete the PythonModule section.  I then add the
> file I just saved out back making sure to name it PythonModule.  After
> that reloading the file works no problems.
> Personally I'm 50/50 on whether or not I agree with Andrew's comment
> about always using a module located in the path instead.  Depending on
> circumstances I'll go either way but of course that's highly dependent
> on what kind of versioning system you are running.  I think I tend
> more towards keeping everything enclosed in the asset unless I'm
> building lots of assets with lots of code overlap since a centralized
> module makes changes to everything easier.
> On Wed, Jan 19, 2011 at 12:44 PM, Sean Lewkiw
> <Sean.Lewkiw at cis-vancouver.com> wrote:
>> How are you peeps dealing with editing python code inside a digital
>> asset?
>> When I edit the file live in the scripts tab, it makes me want to pull
>> my hair out.  Hitting "commit" scrolls the file to the top of the page,
>> and hitting a new line does not auto-indent.  At some point somewhere
>> indents get messed up and it won't compile and I end up "alt+e" editing
>> it to restore sanity.  However, editing it this way causes the usual
>> scrolling to the top of the file, and makes life miserable.
>> I thought I could use the "Save as file" button to save the script out,
>> then edit, load it back in using the "Filename" section on the right
>> of the tab, and then "reload all files", but this does not seem to do
>> anything.
>> Am I missing something?  Is there an easier way?
>> Sean
>> This e-mail and any attachments are intended only for use by the
>> addressee(s) named herein and may contain confidential information. If
>> you are not the intended recipient of this e-mail, you are hereby
>> notified any dissemination, distribution or copying of this email and
>> attachments is strictly prohibited. If you receive this email in error,
>> please immediately notify the sender by return email and permanently
>> delete the original, any copy and any printout thereof. The integrity
>> security of e-mail cannot be guaranteed.
>> _______________________________________________
>> Sidefx-houdini-list mailing list
>> Sidefx-houdini-list at sidefx.com
>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list

Georg Duemlein
+1 604 726 4230
701-1833 Frances Street
Vancouver, BC
V5L 1Z8

More information about the Sidefx-houdini-list mailing list