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

Graham Thompson captainhammy at gmail.com
Wed Jan 19 17:49:04 EST 2011

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 side 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 any 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 and 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

More information about the Sidefx-houdini-list mailing list