Jump to content
Juraj

Juraj's playground

Recommended Posts

Hello community,
I am creating this thread where I will be posting links to my tests, experiments, RnD's and other uncategorizable stuff.

Also often I will include scene files so feel free to explore them and to learn how not to do things :)

...hope it will help somebody, somehow.

 

Juraj 

  • Like 6

Share this post


Link to post
Share on other sites

wow.... fantastic tools!
Any plans to release these? Would make a great PulseOfLife bundle!

also ... are the LOD switches easily hooked up to distance-from-camera?

Share this post


Link to post
Share on other sites
On 3/16/2017 at 5:46 PM, sessionbeer said:

Great work Juraj! Some really clever and time saving stuff in there! Would you mind sharing your 'Save Increment' tool :)

Hello, thanks! Glad you like it :) Unfortunately I cannot share scripts because of the university policy, but will try to write a new one save incremental function :) 

# splits versioning string into letter and number, e.g. v025 -> ['v','025']
def verSplit(ver):
	head = ver.rstrip('0123456789')
	tail = ver[len(head):]
	return head, tail

# save incremental, tries to preserve version formatting
def saveInc():
	hipname = hou.getenv('HIPNAME')
	if hipname != 'untitled':
		v, num = verSplit( hipname.split("_")[-1] )
		num = str( int(num) + 1 ).zfill( len(num) )
		newName = hipname.split("_")
		newName[-1] = v + num
		newNameStr = hou.getenv('HIP') + "/" + "_".join(newName) + "." + hou.getenv('HIPFILE').split(".")[-1]
		hou.hipFile.save(newNameStr)
	else:
		print "cannot increment version name in untitled.hip"

 

On 3/16/2017 at 5:53 PM, stickman said:

wow.... fantastic tools!
Any plans to release these? Would make a great PulseOfLife bundle!

also ... are the LOD switches easily hooked up to distance-from-camera?

Hi, thanks :) Maybe, but this setup is not very portable and was made for our pipeline. It would require a bit of work to prepare for release and to make it work in most of the environments.

LOD switching would not require much of work in this setup. Just computing distance to render camera and then thresholding it into an LOD attribute. But in our case manual decisions proved to be most suitable.

Edited by Juraj
updated code a bit
  • Like 1

Share this post


Link to post
Share on other sites

I also wrote a blog post describing my approach, feel free to check it here.

  • Like 1

Share this post


Link to post
Share on other sites
On 2017/6/20 at 1:02 AM, Juraj said:

I also wrote a blog post describing my approach, feel free to check it here.

could the particle shaping force tool be shared here ?

Share this post


Link to post
Share on other sites
On 7/25/2017 at 6:27 AM, horizon1231 said:

could the particle shaping force tool be shared here ?

Hi, unfortunately I cannot share the whole setup. I shared as much as I am allowed in the blog post explaining the process of implementing this technique.
Hopefully later I will be able to put it here, but not now.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×